xsl-list
[Top] [All Lists]

RE: XSLT: text()='''

2003-07-11 08:23:15
Hi Markus,

Thanks very much for your help - that seems to work! I thought that with
' 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(_at_)comet(_dot_)de] 
Sent: 11 July 2003 15:39
To: 'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'
Subject: AW: [xsl] XSLT: text()='''


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



<Prev in Thread] Current Thread [Next in Thread>