RE: [xsl] XSLT: text()='''

Subject: RE: [xsl] XSLT: text()='''
From: "Cole, Chris" <chris.cole@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 11 Jul 2003 15:23:15 -0000
Hi Markus,

Thanks very much for your help - that seems to work! I thought that with
&apos; being one of the 5 entities defined in XML that this would be
preserved as an entity, but obviously I was wrong.

Thanks again

Chris

> -----Original Message-----
> From: Markus Abt [mailto:abt@xxxxxxxx] 
> Sent: 11 July 2003 15:39
> To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
> Subject: AW: [xsl] XSLT: text()='&apos;'
> 
> 
> Hello Chris,
> 
> the following are equivalent (and all wrong):
> 
> <xsl:template match="//subjectterm[text()='Employees&apos; 
> rights and obligations']"> <xsl:template 
> match="//subjectterm[text()='Employees' rights and 
> obligations']"> <xsl:template 
> match="//subjectterm[text()=&apos;Employees&apos; rights and 
> obligations&apos;]">
> 
> The XML parser treats &apos; and ' equal. The XSLT processors 
> sees three ' and produces an error. You may try:
> 
> <xsl:template match="//subjectterm[text()=&quot;Employees' 
> rights and obligations&quot;]">
> 
> Bye,
> Markus
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread