[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: Octavian Nadolu <octavian_nadolu@xxxxxxx>
Date: Wed, 10 Apr 2013 16:57:43 +0300
Re:  Saxon-EE 9.4.0.6 can't adress comment nodes
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 problem.

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 9.4.0.6


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.