This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Implementing " and ' in literals
- To: <xsl-list at mulberrytech dot com>
- Subject: RE: Implementing " and ' in literals
- From: "Julian Reschke" <reschke at medicaldataservice dot de>
- Date: Thu, 20 Apr 2000 11:38:29 +0200
- Reply-To: xsl-list at mulberrytech dot com
> From: owner-xsl-list@mulberrytech.com
> [mailto:owner-xsl-list@mulberrytech.com]On Behalf Of David Carlisle
> Sent: Thursday, April 20, 2000 11:17 AM
> To: xsl-list@mulberrytech.com
> Subject: 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.
All this might be technically true, but it proves that once you want to use
XPath from an API instead of within XSLT, a common way to get both quotes
and apostrophes is needed. The work-around using translate() works only for
a specific string which happens not to need "X", but not in the generic
case.
Julian
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list