Subject: Re: [xsl] Commenting selected elements (parents) and keeping the child elements with attributes/restoring parents elements somewhere else From: Michael Ludwig <mlu@xxxxxxxxxxxxx> Date: Fri, 09 May 2008 10:31:58 +0200 |
generate the comment delimiters <!-- and --> as text using disable-output-escaping or character maps; you can then generate the elements as real elements.
Thanks Michael for suggestions. I will look into this. I need to restore these elements as comments (I thought that will be best way) as I need to re-transform back to the original.
This sounds as if you need to restore the elements from the comment strings when doing the re-transform. Maybe it's easier to move the elements you don't want to another namespace and than have something like a pass-through template for that namespace:
<xsl:template match="ignore:*"> <xsl:apply-templates select="*"/> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Commenting selected eleme, Pankaj Chaturvedi | Thread | RE: [xsl] Commenting selected eleme, Pankaj Chaturvedi |
RE: [xsl] Commenting selected eleme, Pankaj Chaturvedi | Date | RE: [xsl] Commenting selected eleme, Pankaj Chaturvedi |
Month |