Re: [xsl] No html if XSD present?

Subject: Re: [xsl] No html if XSD present?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 28 Jan 2004 09:51:02 GMT
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


Current Thread