Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Namespaces in Attribute Value..

From: "Michael Kay" <mhk@---.--.-->
To: "'Ashok'" <ashoksrini@-----.--->, <xmlschema-dev@--.--->
Date: 5/11/2004 10:27:00 PM
This is what type xs:QName is for.

Michael Kay 

> -----Original Message-----
> From: xmlschema-dev-request@w... 
> [mailto:xmlschema-dev-request@w...] On Behalf Of Ashok
> Sent: 11 May 2004 19:58
> To: xmlschema-dev@w...
> Subject: Namespaces in Attribute Value..
> 
> 
> Hi..
> 
> I want to know how to validate instance documents that
> has an attribute, and the value of the attribute is of
> form "prefix:value".
> 
> To explain more clearly...
> 
> I have an instance document:
> 
> <Documents 
>    xmlns:dd="http://test.uri.org"
>   
> xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance"
>    xsi:schemaLocation="http://test.uri.org
>                        c:/document.xsd">
> 
>    <document doctype="dd:PurchaseOrder"/>
> 
> </Documents>
> 
> How can I validate this document, such that the schema
> validator checks that value of doctype attribute,
> "PurchaseOrder" exists in namespace "dd" defined in
> "document.xsd" file? Do I have to define 'doctype'
> attribute differently in the schema?
> 
> This is similar to how we define type attribute in
> standard XML schema:
> <xsd:element name="Catalog" type="xsd:string">
> 
> Any pointers? 
> 
> Thanks
> 
> 
> 	
> 		
> __________________________________
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs  
> http://hotjobs.sweepstakes.yahoo.com/careermakeover 
> 
> 

From nobody@w...  Wed May 12 11:34:26 2004
Return-Path: <nobody@w...


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent