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

XSD default attributes not working with doc()?

Subject: XSD default attributes not working with doc()?
From: "Graydon graydon@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 7 Jun 2019 19:56:30 -0000
 XSD default attributes not working with doc()?
Hello --

This is with XSLT 3.0, using Saxon-EE 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

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

Anyone got any idea what might be going on?


Current Thread


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.
First Name
Last Name
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.