[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Cold Fusion

Subject: Re: Cold Fusion
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 14 Mar 2003 12:01:20 -0500
cfmx escape xml output
At 06:37 PM 3/13/2003, Mike wrote:
Alright, I guess I can try to help, under the assumption that you're trying
to generate CFML with XSLT.

[stuff cut about CFML's particular syntax not being XML]


...
This may be a case for the use of disable-output-escaping, where you write
all your tags as XML character data and then tell the serializer to emit them
without escaping the markup characters "<" and "&":

...


but this kludgy "solution" is not guaranteed to work at all (its support is
optional and relies on the processor serializing the result tree directly).
See also http://www.dpawson.co.uk/xsl/sect2/N2215.html

A variation of this approach is to use the "text" output method, in which output is escaped by default, and use named templates to generate your CFML tags (appropriately parameterized so they can be called from your processing templates).


Just a thought, a variation on Mike's theme. Post-processing XML output, as Mike also suggested, is another option: it amounts to splitting the problem in half and isolating the problematic issue (getting non-XML markup output) for a non-XSLT tool to deal with (easy as a regexp-based process may be in this case).

Cheers,
Wendell


___&&__&_&___&_&__&&&__&_&__&__&&____&&_&___&__&_&&_____&__&__&&_____&_&&_ "Thus I make my own use of the telegraph, without consulting the directors, like the sparrows, which I perceive use it extensively for a perch." -- Thoreau


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.