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

RE: No html if XSD present?

Subject: RE: No html if XSD present?
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Wed, 28 Jan 2004 00:27:16 -0000
xsd declaration
I suspect that you didn't only add the xsi:schemaLocation, you also
added the default namespace declaration. Changing the namespace of the
elements in your source document will typically mean that none of the
template rules in your stylesheet match any more.

Michael Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> davidpbrown
> Sent: 27 January 2004 23:00
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  No html if XSD present?
> 
> 
> I have an XML source from which I generate xhtml from an XSLT.
> 
> That works fine and there's no problem until I suggest a XSD 
> in the XML. Then it spews out only the text result with none 
> of the tags!?
> 
> The only tag to survive is the XML <?xml version="1.0" 
> encoding="utf-8"?>
> 
> The XSL, XSD and XML are all valid as per the Sun's 
> Multischema XML validator (thanks to G. Ken Holman for 
> suggesting that in another post)
> 
> The XML's XSD declaration I have as
> <file xmlns="http://www.example.com/ns/file.xsd"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.example.com/ns/file.xsd">
> 
> I am processing these on my local hard drive but this seems 
> to be ok, in that the XSD declares that it is the 
http://www.example.com/ns/file.xsd
suggested, even though it isn't found at that location.

The command line used is
java org.apache.xalan.xslt.Process -in file.xml -xsl file.xsl -out
file.html

Any ideas why no tags pass when XSD is present?

Thanks
davidpbrown


 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.