[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Saxon-EE 9.4.0.6 can't adress comment nodes

Subject: Re: Saxon-EE 9.4.0.6 can't adress comment nodes
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Tue, 9 Apr 2013 18:51:51 +0100
Re:  Saxon-EE 9.4.0.6 can't adress comment nodes
I'm always a bit reticent about discussing product-specific issues on this
list - I like to be helpful to users and I don't mind doing it in public, but
I'm conscious that not everyone on the list is interested. There's a Saxon
specific forum at http://saxonica.plan.io which you are welcome to use.

I can't see any obvious reason for this behaviour. Schema validation per se
shouldn't lose the comments, although it ignores them. How are you invoking
the transformation?

Michael Kay
Saxonica

On 9 Apr 2013, at 16:44, bjoern.duenckel@xxxxxxxxxxxxxxxxxxx wrote:

> 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.