xslt text disable-output-escaping

EMD145

New Member
Using XSL to create a HTML page from a XML I would like to know how to write a comment in the resultant HTML page. This is my XSL so far:\[code\]<?xml version="1.0" encoding="US-ASCII" ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html" omit-xml-declaration="no" indent="yes" /> <xsl:text disable-output-escaping="yes"> <![CDATA[<!--comment-->]]> </xsl:text></xsl:stylesheet>\[/code\]It doesnt work, and it gives the next error:\[code\]Warning: XSLTProcessor::importStylesheet(): compilation error: file mydirectoy/Myxsl.xsl line 4 element text\[/code\]How can I make this work?
 
Back
Top