xsl-list
[Top] [All Lists]

Re: Attribute's default value in xsd doesn't show in xslt

2003-05-29 06:22:21
Thanks for your quick reply. Can you tell my how I can modify my code to
turn validation on? I am using xalan from the command line, not through
the Java API.

Thanks.

EL

-- Original Message --
Date: Thu, 29 May 2003 09:51:06 +0200
From: Oleg Tkachenko <olegt(_at_)multiconn(_dot_)com>
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Attribute's default value in xsd doesn't show in xslt
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com


Eran Hammer-Lahav wrote:

Can someone please explain to me how come the default value I have set
in
abc.xsd doesn't get into the abc.xslt? If I understand it correctly,
I
should
get a result text file of 'bbbbb' but it comes out empty. If I use abc2.xml
I get 'aaaaa' which shows the example works but not the default value.

Make sure the schema is used by the parser, e.g. turn on validation.
-- 
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