atom feed3 messages in org.oasis-open.lists.docbookRe: [docbook] generating index in pla...
FromSent OnAttachments
Tim ArnoldMay 14, 2012 1:49 pm 
Peter FlynnMay 15, 2012 2:57 pm 
Tim ArnoldMay 16, 2012 7:48 am 
Subject:Re: [docbook] generating index in plain text
From:Peter Flynn (pet@silmaril.ie)
Date:May 15, 2012 2:57:24 pm
List:org.oasis-open.lists.docbook

On 14/05/12 21:49, Tim Arnold wrote:

hi, I am creating an XML-based index file from my DocBook 5 XML source. I made a copy of the javahelp xsl templates to get started. My problem is that the target format requires that the <term> and the <title> the term points to must be in plain text (that is, contain no other markup). The target format follows this pattern: <index> <indexEntry> <term> stuff </term> <sortKey/> <indexTarget> <title> Title of Section </title> <sortKey/> <target file="myfile.htm" fragment="#middleofpage"/> </indexTarget> </indexEntry> etc. </index>

Is there a way to 'clean up' terms and titles so they only have text?

Can you use normalize-space() for this?

///Peter