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

RE: Attribute's default value in xsd doesn't show in x

Subject: RE: Attribute's default value in xsd doesn't show in xslt
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Sun, 1 Jun 2003 22:12:55 +0100
xsd defaults
The XSLT 1.0 spec doesn't say whether or how this should work - because
XSLT 1.0 was invented before XML Schemas were. XSLT 1.0 allows an
implementation to construct an input document any way it likes, so
expansion of schema-defined default attributes is permitted, but the way
it is done, if it is done at all, depends entirely on the product you
are using. So I suggest you ask this on a Xalan list.

XSLT 2.0 does describe a way of constructing input documents from the
PSVI produced by a schema processor - this will cause attribute defaults
to be expanded. But there are no products that implement this yet.

Michael Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Eran Hammer-Lahav
> Sent: 29 May 2003 16:42
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  Attribute's default value in xsd doesn't 
> show in xslt
> 
> 
> Since the example works when an explicit attribute value is 
> set, it means Xalan found the abc namespace. However, adding 
> this code still doesn't yield the desired result. Default 
> values still won't work. Any other ideas?
> 
> Thanks.
> 
> EL
> 
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Oleg Tkachenko
> Sent: Thursday, May 29, 2003 12:16 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> 
> Eran Hammer-Lahav wrote:
> 
> > I have replaced my abc.xml with the code you provided and it still 
> > doesn't recognize the default value from the abc.xsd. Also, 
> you wrote
> 'xsi:schemaLocation="abc
> > abc.xsd"', what is the syntax of "abc abc.xsd"?
> 
> See http://www.w3.org/TR/xmlschema-0/#schemaLocation
> "The  schemaLocation attribute contains pairs of values: The 
> first member of
> 
> each pair is the namespace for which the second member is the 
> hint describing 
> where to find to an appropriate schema document." Make sure 
> abc.xsd can be found.
> 
> -- 
> Oleg Tkachenko
> http://www.tkachenko.com/blog
> Multiconn Technologies, Israel
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.