do you _really_ want the namespace of your elements to be the same as
the location of the schema?
Not sure. I'm making first steps to understand how to construct a good XML
document and took the namespace to be the place where structure and form are
defined.. the little I know suggested to me that schemas are now used where
DTD's where once defined, as they provide data types etc and are XML
themselves.
?
davidpbrown
--
---------- Original Message -----------
From: David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk>
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Sent: Wed, 28 Jan 2004 09:51:02 GMT
Subject: Re: [xsl] No html if XSD present?
The problem is not the xsd reference it is
xmlns="http://www.example.com/ns/file.xsd"
which is a namespace declaration, which changes the name of every
element in your file.
To refer to an element in that namespace in Xpath you must declare
xmlns:x="http://www.example.com/ns/file.xsd"
in your stylesheet, and then use x:abc/x:zzz everywhere.
do you _really_ want the namespace of your elements to be the same as
the location of the schema?
David
--
http://www.dcarlisle.demon.co.uk/matthew
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a
proactive anti-virus service working around the clock, around the
globe, visit: http://www.star.net.uk
________________________________________________________________________
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
------- End of Original Message -------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list