Hi Martin,
I have to check the DTD, but I am pretty sure that is the allowed sequence.
Thank you for the feedback. Your suggestion is much simpler than grouping.
Rick
Is the content of chapter always some unknown elements plus a sequence of
section elements?
In that case you could of course also simply map section to file elements with
e.g.
<xsl:template match="section">
<file>
<xsl:copy-of select="."/>
</file>
</xsl:template>
<xsl:template match="section[1]">
<file>
<xsl:copy-of select="preceding-sibling::*, ."/>
</file>
</xsl:template>
<xsl:template match="chapter/*[not(self::section)]"/>
XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/612310> (by
email <> )
|