xsl-list
[Top] [All Lists]

Re: [xsl] replacing nodes during xsl:copy-of

2011-01-06 08:01:31
Mark Anderson wrote:

My xsl is basically

<apply-templates select="Chapter">
        <xsl:copy-of select="text">
        <apply-templates select="Section">
                <xsl:copy-of select="text">     
                <apply-templates select="Sub-Section">
                        <xsl:copy-of select="text">     
                        <apply-templates select="clause">
                        <xsl:copy-of select="text">     

Sorry, an apply-templates can contain param and sort elements but nothing else like copy-of or further apply-templates elements. So the above is not even syntactically possible. How does your XML input look? How does the result look you want to create with XSLT?

--

        Martin Honnen
        http://msmvps.com/blogs/martin_honnen/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--