Subject: Re: [xsl] With or without PSVI From: Dan Holmsand <holmsand@xxxxxxxxxxxxx> Date: Wed, 15 May 2002 12:56:07 +0200 |
<foobar xmlns:xsi="http://www.w3.org/2000/11/XMLSchema-instance" xsi:noNamespaceSchemaLocation="foobar.xsd"> . . . </foobar>
[Note: for those not intimately familiar with XML Schema namespaces, the correct namespace for XML Schema instance attributes is http://www.w3.org/2001/XMLSchema-instance. Dan's point is that because the namespace declaration is wrong, the schema can't be located.]
You'd also, in the stylesheet, need to make sure that missing element values/attributes that are defaulted/fixed in the schema were treated in the same way as if they were present with the value specified in the schema.
I think the most fundamental problem would probably arise with comparisons. If you had:
<foo> 1E1 </foo>
in your source document, then doing:
foo = '10'
would be false without the schema, but true (I think -- the casting rules are a little complicated) if the schema was present and the 'foo' element identified as having a type derived from xs:float or xs:double. Similar issues arise with QNames and dateTimes (with timezones), and particularly due to automatic whitespace normalization (although you can get around that to some extent with normalize-space()).
> Yes, although it's a similar (just exaggerated) situation as the one > we've already been having to deal with with DTDs. This is one reason > why specifying what schema to use when parsing the document should be > done from *within* the stylesheet rather than the information being > taken from the instance document.
I think the WG probably regard that as a job for secular writers rather than something that should go in the spec. You're right, though -- it would be a very useful list to have.
(and wouldn't it be nice to have an "xf:tokenize" function to be able to handle list types in the absence of PSVI?).
There's an issue about adding a xf:tokenize function in the F&O WD. Write to public-qt-comments@xxxxxx and say "yes, we need xf:tokenize()!" :)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] With or without PSVI, Jeni Tennison | Thread | [xsl] How to chunk to same dir wher, Janning Vygen |
Re: [xsl] A better way to build a c, John Sands | Date | Re: [xsl] unresolved problem using , longjohn |
Month |