This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: validating a schema at run time
- To: "Ian Rogers" <ian dot rogers at net800 dot co dot uk>
- Subject: Re: [xsl] validating a schema at run time
- From: Jeni Tennison <jeni at jenitennison dot com>
- Date: Wed, 10 Oct 2001 10:28:36 +0100
- CC: "Xsl Mailing List" <xsl-list at lists dot mulberrytech dot com>
- Organization: Jeni Tennison Consulting Ltd
- References: <000c01c15168$b32639c0$c31381c3@eris.net800.co.uk>
- Reply-To: xsl-list at lists dot mulberrytech dot com
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@w3.org.
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list