[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Saxon-EE 9.4.0.6 can't adress comment nodes
With Saxon-EE 9.4.0.6 I can't adress comment nodes.
Source ----------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <r> <!-- This is a comment. --> </r> ----------------------------------------------- Stylesheet ----------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output method="text"/> <xsl:template match="/"> <xsl:value-of select="count(//comment())"/> </xsl:template> </xsl:stylesheet> ----------------------------------------------- Output with Saxon-EE 9.4.0.6 ----------------------------------------------- 0 ----------------------------------------------- Output with Saxon-PE 9.4.0.6 (and any other Transformer I tried) ----------------------------------------------- 1 ----------------------------------------------- Do you agree, that this is a saxon bug? Or am I missing something about schema-awareness that would explain this behavior? Regards Bjvrn D|nckel
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|