Thanks for the reply and its helping.  I'm moving in the right direction, I
think but still not getting results I need.  Here is the stylesheet thus
far.
The goal is to take Docbook XML and add
<indexterm><primary>title</primary></indexterm> after each sect1/title (for
this example).

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
  <xsl:output method="xml" indent="yes" encoding="UTF-8"/>
      <xsl:template match="sect1/title">
       <xsl:copy-of select="."/>
       <indexterm>
          <primary>
             <xsl:value-of select="."/>
          </primary>
       </indexterm>
       <xsl:apply-templates select="."/>
    </xsl:template>
    <xsl:template match="/">
    <xsl:copy-of select="."/>
 </xsl:template>
</xsl:stylesheet>

This stylesheet re-creates the input XML fine, but it ignores the first
template and never inserts the indexterm element.

I'm attempting to use Saxon's latest .net processor for this using this
command line:

Transform -s:input.xml -xsl: index.xsl -o:indexed.xml


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to