|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] disable-output-escaping
Currently, we are using an extension element for escaping XML fragments for inclusion as the value of an HTML hidden form field, so that XML can be passed back to the server. Any arbitrary tree can be nested into an <escape> element in order for that tree to be escaped as a string to be included in the form. Implementing this in pure XSLT seems rather difficult or at least "clunky". While I understand that the disable-output-escaping attribute for the xsl:text and xsl:value-of elements is a feature that an XSLT processor does not have to support, it seems crucial for this application. (Please correct me if I'm overlooking another route!) I have however run into some interesting problems. SAXON disabled the output escaping of < and ' but not > & or ". I was quite confused at first that it was treating these characters differently, but then I tried the same thing with xt. xt gave me an error: "illegal use of disable-output-escaping='yes'". Apparently, the use of disable-output-escaping is illegal when the output to the result tree is anything but a text node. Thus, it cannot be used to generate the value of an attribute, for example, which is what I am trying to do. But, as I mentioned, SAXON DID let me escape < and ' in this context. Do I thank SAXON for letting me by or scold it for not reporting an error? Either way, I seem to be back to the drawing board on making this aspect of the stylesheet portable. I'm afraid to see what MSXML does now (and client-side transformations is the reason I decided to try this whole thing). Any input regarding this would be greatly appreciated. Thanks, Evan Lenz elenz@xxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|






