XSD meta-attribute

N

Nicolas Moreau

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
 
M

Martin Honnen

Nicolas said:
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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,001
Messages
2,570,255
Members
46,853
Latest member
GeorgiaSta

Latest Threads

Top