Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: comments inside XSL comments inside XSLTo: NULL Date: 2/4/2008 8:22:00 AM Hi I need to write an XSL that makes a transformation to an input xml such as: <tag1> <email> test@h... </email> </tag1> Such that I have an output: <!-- <properties> <email-property key="email" value="test@h..." /> </properties> --> I tried the following xsl: <xsl:comment> <xsl:element name="properties"> <xsl:element name=" email-property "> <xsl:attribute name="key">email</xsl:attribute> <xsl:attribute name="value"> <xsl:value-of select="//tag1/email"/ > </xsl:attribute> </xsl:element> </xsl:element> </xsl:comment> That gives the comment elements (<!-- -->) without the body. If I remove the <xsl:comment> I get the body without the comment elements in the output! Thanks in advance Mahmoud | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
