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

Re: XSD default attributes not working with doc()?

Subject: Re: XSD default attributes not working with doc()?
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 7 Jun 2019 23:15:59 -0000
Re:  XSD default attributes not working with doc()?
Default values from the schema will only be expanded if validation takes
place.

You can do validation without attribute expansion, but you can't do attribute
expansion without validation.

Michael Kay
Saxonica

> On 7 Jun 2019, at 21:56, Graydon graydon@xxxxxxxxx
<mailto:graydon@xxxxxxxxx> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx
<mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>> wrote:
>
> On Fri, Jun 07, 2019 at 08:06:43PM -0000, Martin Honnen martin.honnen@xxxxxx
<mailto:martin.honnen@xxxxxx> scripsit:
>> On 07.06.2019 21:56, Graydon graydon@xxxxxxxxx <mailto:graydon@xxxxxxxxx>
wrote:
> [XSD default attribute values not being picked up by the document parse
> from doc()]
>>> I'm surprised by this; the DTD and RNG versions pick up the default
>>> attributes.
>>>
>>> Anyone got any idea what might be going on?
>>
>> Can you try to run that outside of oXygen with standalone Saxon EE?
>
> Alas, no.  No standalone license.
>
>> Is the oXygen option in the Saxon EE transformation scenario for lax or
>> strict validation enabled?
>
> It is not; validation is disabled.  (XSD and DTD)
>
> "Expand attribute defaults", -expand, is checked in the oXygen
> transformation scenario.
>
> Thanks!
> Graydon

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.