xsl-list
[Top] [All Lists]

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

2019-06-07 18:16:07
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(_at_)marost(_dot_)ca 
<mailto:graydon(_at_)marost(_dot_)ca> 
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com 
<mailto:xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com>> wrote:

On Fri, Jun 07, 2019 at 08:06:43PM -0000, Martin Honnen 
martin(_dot_)honnen(_at_)gmx(_dot_)de 
<mailto:martin(_dot_)honnen(_at_)gmx(_dot_)de> scripsit:
On 07.06.2019 21:56, Graydon graydon(_at_)marost(_dot_)ca 
<mailto:graydon(_at_)marost(_dot_)ca> 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

--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>