xsl-list
[Top] [All Lists]

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

2019-06-07 15:06:44
On 07.06.2019 21:56, Graydon graydon(_at_)marost(_dot_)ca wrote:

This is with XSLT 3.0, using Saxon-EE 9.8.0.12 in oXygen 21.1

I have some documents associated with an XSD schema via
xsi:noNamespaceSchemaLocation (and I'm sure that association works
because validation works in oXygen.)  The schema contains some
attributes with default values.

If I create an identity transform stylesheet and run one of the
documents through it, I get a result where the attribute nodes with the
default values have been created in the result document, which is what I
expect.

If I use the doc() function on the members of a sequence of document
references from the file:list() function I get the documents but I do
NOT get the default attributes, whether or not I set use="required" on
the default attributes.

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?

Is the oXygen option in the Saxon EE transformation scenario for lax or
strict validation enabled?
--~----------------------------------------------------------------
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>