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

RE: output escaping (i just dont get it)

Subject: RE: output escaping (i just dont get it)
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 26 Oct 2001 14:54:45 +0100
just d
>
> So my real question is, why is the & 'legal' when passed as
> an external
> parameter, when it would obviously be illegal as an internal
> param, ie:
> <xsl:param name="heading">This & That</xsl:param> ??
>
> I would have thought that all 'input' strings would have to
> be well-formed
> for the transformation to take place.

The string passed as a parameter is a string, it isn't a piece of XML (it
can't contain markup, and it doesn't get parsed). If it was XML, the "&"
would need to be escaped using XML escape conventions (i.e. as "&amp;"); but
it isn't.

Mike Kay


 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.