Subject: Re: [xsl] Including precediing-siblings with the first group From: "rick@xxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 18 Aug 2022 15:15:05 -0000 |
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 <> )
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Including precediing-sibl, Martin Honnen martin | Thread | Re: [xsl] Including precediing-sibl, Martin Honnen martin |
Re: [xsl] Including precediing-sibl, Martin Honnen martin | Date | Re: [xsl] XPath expression which co, Joel Kalvesmaki dire |
Month |