Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Output value-of within HTML comment

Status
Not open for further replies.

csteinhilber

Programmer
Aug 2, 2002
1,291
US
I'm transforming an XML doc to HTML, and I need to be able to output the value-of a nodes attribute within a comment in the final HTML.

ie, something like:
Code:
   <!--  <xsl:value-of select="comment" />  -->

but, of course, the comment tag prevents the value-of from executing.

Is there a way to do this?
Thanks in advance!

-Carl
 
Nevermind.
I remembered 'bout the xsl:comment element.


-Carl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top