W3C home > Mailing lists > Public > public-xml-core-wg@w3.org > November 2014

Re: XSD version question

From: Loren Cahlander <loren.cahlander@gmail.com>
Date: Wed, 5 Nov 2014 06:16:53 -0500
Cc: core <public-xml-core-wg@w3.org>
Message-Id: <06249486-0B25-4BD4-9717-D49DAB6EA958@gmail.com>
To: David Ezell <David_E3@VERIFONE.com>
I kind of figured that.  It was worth a query though.

Sent from my iPad

> On Nov 4, 2014, at 9:31 PM, David Ezell <David_E3@VERIFONE.com> wrote:
> 
> Hi Loren:
> I believe this is one of those areas where you may not get a precise match between opinions.
>  
> In essence, a schema validator is deemed to know about (and to be able to query) information about a schema it uses for validating other XML documents.  That ability extends to schemas that were originally written in XML syntax and those that were not (“born binary”). 
>  
> But in any case, “xsi:schemaLocation” is only a hint, and in such a case, pulling that information out would be non-deterministic, and an argument (among many) that the WG chose to avoid.
>  
> Best regards,
> David
>  
> From: Loren Cahlander [mailto:loren.cahlander@gmail.com]   
> Sent: Tuesday, November 04, 2014 7:26 PM
> To: core
> Subject: XSD version question
>  
> Hello folks,
>  
> I am in a quandary.  I am trying to to see how to refer to the value of the version attribute in an XSD in an XML instance.
> 
> <schema xmlns="http://www.w3.org/1999/XMLSchema"
>                targetNamespace="urn:person-schema” version=“5">
>     ...
> </schema>
> The instance can have:
>  
>           xmlns:xsi="http://www.w3.org/1999/XMLSchema/instance"
>           xsi:schemaLocation="urn:person-schema
>                               urn:person-schema/person-schema.xsd"
>  
> How is the version attribute from the XSD to be carried to the XML instance?  I cannot find anything out there.
> Why don’t we have xsi:schemaVersion?
> Thanks,
> Loren
>  
> This electronic message, including attachments, is intended only for the use of the individual or company named above or to which it is addressed. The information contained in this message shall be considered confidential and proprietary, and may include confidential work product. If you are not the intended recipient, please be aware that any unauthorized use, dissemination, distribution or copying of this message is strictly prohibited. If you have received this email in error, please notify the sender by replying to this message and deleting this email immediately.   

Received on Wednesday, 5 November 2014 11:17:22 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:40:51 UTC