[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Saxon-EE can't adress comment nodes

Subject: Re: [xsl] Saxon-EE can't adress comment nodes
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Wed, 10 Apr 2013 15:12:37 +0100

OK, many thanks. It looks as if filtering out comments from the tree view that
is seen by assertions is having the unintended side-effect of filtering them
out from the validation output. We'll look into it.

Michael Kay

On 10 Apr 2013, at 14:57, Octavian Nadolu wrote:

> Hello,
> The problem can be reproduced in oXygen 14.2 if schema-based validation
(-val) is enabled, the XML Schema version is set to 1.1 (-xsdversion) and the
'assertions can see comments' option is disabled.
> To resolve the problem you can enable the 'assertions can see comments'
option from the oXygen preferences, 'XML / XML Parser / XML Schema' options
page or you can set the default XML Schema version to 1.0, from the same
options page.
> This behavior can be reproduced also by running the transformation with
Saxon from the command line, with the following parameters:
> java -jar saxon9ee.jar test.xml -xsl:test.xsl -config:saxonCfg.xml
> ------- saxonCfg.xml--------------
> <configuration edition="EE" xmlns="http://saxon.sf.net/ns/configuration">
>    <xsd version="1.1" assertionsCanSeeComments="false"/>
>    <global schemaValidation="lax"/>
>    <xslt schemaAware="true">
>        <extensionElement/>
>    </xslt>
> </configuration>
> -------------------------------------------
> Regards,
> Octavian
> ---------------
> Octavian Nadolu
> <oXygen/> XML Editor
> http://www.oxygenxml.com
> On 10.04.2013 14:42, Michael Kay wrote:
>> We've tried this out on oXygen 14.2 and we're unable to reproduce the
>> We can try it again perhaps with a specific stylesheet, source document,
and schema.
>> Michael Kay
>> Saxonica
>> On 10 Apr 2013, at 09:15, bjoern.duenckel@xxxxxxxxxxxxxxxxxxx wrote:
>>>> 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 athttp://saxonica.plan.io  which you are
>>>> welcome to use.
>>> Thanks for the advice!
>>> I will use the forum for Saxon realted issues in the future.
>>>> 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?
>>> I used an oXygen transformation scenario to invoke the transformation:
>>>   oXygen XML Editor 14.2, build 2013030817
>>>   Transformer: Saxon-EE
>>> Regards
>>> Bjvrn D|nckel.

Current Thread