Subject: Re: Implementing " and ' in literals From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 20 Apr 2000 10:16:41 +0100 (BST) |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Implementing " and ' in literals, Matt Sergeant | Thread | RE: Implementing " and ' in literal, Julian Reschke |
Implementing " and ' in literals, Matt Sergeant | Date | Re: Implementing " and ' in literal, Christopher R. Maden |
Month |