|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to escape "$" in output?
David,
At 02:50 PM 5/25/2005, you wrote: I have an element like the following that I need to emit from within a template: No, you don't. Actually I don't think it will be the '$' characters that will be the problem here, but rather the curly braces, which the XSLT processor sees as attribute value templates. In order to prevent this, you can escape the curly braces by doubling them. So your stylesheet would say <wlwBuild work="${{app.dir}}/${{work.file}}"
serverclasspath="${{server.classpath}}">
<build outputdir="${{output.dir}}" outputfilename="${{output.file}}"/>
</wlwBuild>This should produce the literal output you want. I tried using '<xsl:text disable-output-escaping="yes">...', but that complains about the "wlwBuild" element, saying it's not legal at that point in the stylesheet. That's weird, though I suppose if you posted the code we might be able to see why. On the other hand, you might not want to bother: d-o-e isn't the way you want to do this anyway. Cheers, Wendell
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








