This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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@w3.org.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]