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

Re: validating a schema at run time

Subject: Re: validating a schema at run time
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Wed, 10 Oct 2001 10:28:36 +0100
Re:  validating a schema at run time
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

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.