On 22/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I'm looking for a way to support OO's index mark start and end elements when converting to docbook xml. The OO input looks like <text:p text:style-name="P1">Pentium 4 or Xeon processor, <text:alphabetical-index-mark-start text:id="IMark299746988"/> HyperThreaded <text:alphabetical-index-mark-end text:id="IMark299746988"/> or dual code, 3GHz or faster </text:p>I'm trying to translate this to a docbook IndextTerm with "HyperThreaded" the primary element value ie: <indexterm> <primary>HyperThreaded</primary> </indexterm> I have not been able to find a way to isolate the text "HyperThreaded" between the index start and end elements. Does anyone know of a way to do this in XSL?
<xsl:template match="text:alphabetical-index-mark-start"> <indexterm> <xsl:value-of select="following-sibling::text()[1]"/> </indexterm> If you want to be posh, look at the grouping facilities in xslt 2.0. HTH -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
