Subject: Re: [xsl] validating a schema at run time From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx> Date: Wed, 10 Oct 2001 10:28:36 +0100 |
Hi Ian, > and my xml code > <?xml version="1.0" ?> > <transactions > xmlns:xsi="http://www.w3.org/2001/10/XMLSchema-instance" > xsi:noNamespaceSchemaLocation="file:trans.xsd"> > <details> > <..etc..> The xsi:noNamespaceSchemaLocation attribute should take a URL. You probably need something like: xsi:noNamespaceSchemaLocation="trans.xsd" to make it find the schema. > i have tried using namespaces but with the same result.what happens > is it just displays the xml file to the browser instead of the > result of the xml/xslt. It's hard to say what's going wrong without knowing a lot more about how you've set up the link between the XML document and the stylesheet, and what processor you're using, and where, to do the transformation. There shouldn't (I think?) be any interaction between whether the schema gets found or not and whether the XML document gets transformed or not. Perhaps you can give some more details about how the XSLT is being used (what processor are you using? client or server side? how are you associating the stylesheet with the XML document? are you sure that the stylesheet hasn't got errors itself?). For questions about the schema, I recommend that you ask the xmlschema-dev list at xmlschema-dev@xxxxxxx Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] validating a schema at run ti, Ian Rogers | Thread | [xsl] problem with preceding axis, kalpana rawat |
Re: [xsl] keys and idrefs - XSLT2 r, Jeni Tennison | Date | RE: [xsl] keys and idrefs - XSLT2 r, DPawson |
Month |