Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   XSD meta-attribute (http://www.velocityreviews.com/forums/t273369-xsd-meta-attribute.html)

Nicolas Moreau 05-10-2006 11:30 AM

XSD meta-attribute
 
Hi,

is there a way to declare in an XSD an attribute of type "an xsd type" ?
for example <foo bar="xsd:string"/> or <foo bar="xsd:boolean"/>

thanks,

Nicolas Moreau

Martin Honnen 05-10-2006 11:45 AM

Re: XSD meta-attribute
 

Nicolas Moreau wrote:

> is there a way to declare in an XSD an attribute of type "an xsd type" ?
> for example <foo bar="xsd:string"/> or <foo bar="xsd:boolean"/>


I don't think there is a predefined QName type you could use.
There is however the predefined
xsi:type
attribute that defines the type of an element e.g.
<element
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xs:string">...</element>

--

Martin Honnen
http://JavaScript.FAQTs.com/


All times are GMT. The time now is 09:28 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.