Subject: [xsl] Un-nesting elements in XSLT 2.0 From: "Tristan Stevens" <tristanstevens@xxxxxxxxxxx> Date: Sat, 11 Nov 2006 00:01:25 -0000 |
I've got a problem that I've been pondering over and I'm sure there's a pattern for doing this. I have a hierarchical structure that I need to break out, but things seem to get confusing when mixed content models come into play.
<para> This is some above image text<sup>See footnote 1</sup> <image src="image1.gif" alternative="My Image"/> This is some text in between the image and table. <table> <tr> <td>... ... </table> Some more text to finish the paragraph off. </para>
<p>This is some above image text <sup>See footnote 1</sup></p> <img src="image1.gif alt="My Image"/> <p>This is some text in between the image and table.</p> <table> ... </table> <p>Some more text to finish the paragraph off.</p>
<xsl:template match="para"> <p> <xsl:apply-templates /> </p> </xsl:template>
<xsl:template match="image"> </p> <img> <xsl:attribute... ... </img> <p> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Fwd: Merging XML files, Michael Kay | Thread | Re: [xsl] Un-nesting elements in XS, David Carlisle |
RE: [xsl] xslt 1.1 xsl:document, Michael Kay | Date | Re: [xsl] Un-nesting elements in XS, David Carlisle |
Month |