Greetings all,

I am looking to use XSLT to auto generate indexterms based on
sect1/titles,sect2/titles etc etc.

Does anyone have some xslt code that might do this job?  I've been toying
with some code below:

<xsl:stylesheet version="1.0"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
     xmlns="http://www.w3.org/TR/xhtml1/strict";>
  <xsl:output method="html" indent="yes" encoding="UTF-8"/>
  <xsl:template match="chapter">
    ----- Start of Chapter -----
    <xsl:apply-templates/>
  </xsl:template>
  <xsl:template match="/">
    ##### Unmatched Element in Source #####
  </xsl:template>
    <xsl:template match="sect1/title">
   <td><xsl:value-of select="."/></td>
  </xsl:template>
</xsl:stylesheet>

Result: ##### Unmatched Element in Source #####
On XML that contains over 15 sect1/titles and over 5 chapters...which I
don't understand.

But this is generally ignored.

TOOLSET: Xalan,FOP


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

Reply via email to