Subject: [xsl] xsl:copy-of issue From: a kusa <akusa8@xxxxxxxxx> Date: Wed, 13 Jan 2010 17:53:08 -0600 |
Hi I have a CALS table in my input thatI am trying to copy into my result tree except for some attributes. I have tried 'except' but it just is not working! Here is my XSL snippet: <xsl:template match="table"> <table id="{generate-id()}"> <xsl:copy-of select="@* except(@type) |node()/> </table> </xsl:template> Here is the table snippet: <table> <tgroup cols="3"> <colspec colname="col1"/> <colspec colname="col2"/> <colspec colname="col3"/> <tbody> <row> <entry valign="middle" align="center"> <emphasis>data</emphasis> </entry> <entry valign="middle" align="center"> <emphasis>data</emphasis> </entry> <entry valign="middle" align="center"> <emphasis type="italic">data</emphasis> </entry> </row> </tbody> </table> I want to copy the table except the attibute @type that occurs at element <emphasis> So this line: <emphasis type="italic">data</emphasis> Why is my '<xsl:copy-of select="@* except(@type) |node()/> ' not working? Thanks in advance for allyour help.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Nested element move to si, Syd Bauman | Thread | Re: [xsl] xsl:copy-of issue, Imsieke, Gerrit, le- |
Re: [xsl] Client-side cross-platfor, Rob Belics | Date | Re: [xsl] xsl:copy-of issue, Imsieke, Gerrit, le- |
Month |