elements inside comment

Oxygen general issues.
eHannes
Posts: 31
Joined: Sat Apr 16, 2005 11:29 am

elements inside comment

Post by eHannes »

Hi,

How can i get elements inside a comment?
When i say:

Code: Select all

<xsl:comment>
<test><xsl:value-of select="'blabla'"/></test>
</xsl:comment>
i get as result just

Code: Select all

<!---->
When i say:

Code: Select all

<xsl:comment>
<xsl:value-of select="'blabla'"/>
</xsl:comment>
i get:

Code: Select all

<!-- blabla -->
(as expected)

How to get the element inside the comment?

Thanks, Hans
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

Use

Code: Select all

<xsl:comment>
<test><xsl:value-of select="'blabla'"/></test>
</xsl:comment>
If xsl:comment tries to create nodes other than text nodes these nodes are ignored.

Regards,
Sorin
Post Reply