View Single Post
  #1 (permalink)  
Old November 5th, 2016, 08:06 AM
TheovdH TheovdH is offline
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2016
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Red face character-map example on page 948

Hi all,

when I try the example on a substitute for
Code:
disable-output-escaping
on page 948, I get:
Code:
Error at xsl:sequence on line 28 column 122 of auxml2xhtml.xsl:
  XPST0003 XPath syntax error at char 15 on line 28 in {translate($in, '&<>'"}:
    Unmatched quote in expression
(Using Saxon-PE 9.3) Apparently, the line:
Code:
  <xsl:sequence select="translate($in, '&lt;&amp;&gt;&apos;&quot;', '&doe-lt;&doe-amp;&doe-gt;&doe-apos;&doe-quot;')"/>
confuses the parser somehow. Assuming the example is correct, what could I be doing wrong here?
Thanks,
Theo van den Heuvel
Reply With Quote