|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Implementing " and ' in literals
> In XML::XPath (perl's XPath processing module) I implemented translation
> of " and ' in literals to " and ' respectively.
> So what do people think of this?
I think it's completely broken!
The behaviour of the entities is completely determined by the XML
specification, so if you deviate from that there will be no way of
sharing stylesheets between XML::XPath and a conforming XSL system.
So it adds no new functionality and breaks interoperability.
> <xsl:value-of select=""I'm feeling &quot;sad&quot;""/>
>
> Which gives you a literal of:
> I'm feeling "sad"
The value of the above is the value of the xpath expression
"I'm feeling "sad&;quot;"
which is the string, when written out in XML syntax looks like
I'm feeling &quot;sad&quot;
If you want to produce the string I'm feeling "sad" then just use
<xsl:value-of select="translate('IXm feeling "sad"','X', "'")"/>
David
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
|

Cart








