xsl-list
[Top] [All Lists]

Re: No html if XSD present?

2004-01-28 02:51:02

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



<Prev in Thread] Current Thread [Next in Thread>