[xslt] error unparsed-entity-uri()



consider this XML:

 <!DOCTYPE foo [ <!NOTATION URL SYSTEM ''>
 <!ENTITY TUG SYSTEM "www.tug.org" NDATA URL> ]>
 <foo>
   <xptr doc="TUG"/>
 </foo>

and this XSL:

  <xsl:template match="xptr">
    <xsl:message>
   [<xsl:value-of select="unparsed-entity-uri(@doc)"/>]</xsl:message>  
  </xsl:template>



I would suggest that libxslt does not implement the function:

[spqr]/tmp:saxon x.xml x.xsl

   [file:/tmp/www.tug.org]
 
[spqr]/tmp:xsltproc x.xsl x.xml

   []

The parser is mandated to read the DTD subset, isn't it?

Sebastian Rahtz





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]