Adding attributes to xs:appinfo?

A

Arndt Jonasson

XML Schema provides the element xs:appinfo for stating application
info. It can apparently contain any well-formed XML. Can it also
be supplied with application-dependent attributes? For example,
is the following fragment allowed (assuming app: is a declared
namespace
prefix)?

....
<xs:annotation>
<xs:appinfo app:persistence="true"/>
</xs:annotation>
....
 
U

usenet

XML Schema provides the element xs:appinfo for stating application
info. It can apparently contain any well-formed XML. Can it also
be supplied with application-dependent attributes? For example,
is the following fragment allowed (assuming app: is a declared
namespace
prefix)?

...
<xs:annotation>
<xs:appinfo app:persistence="true"/>
</xs:annotation>
...

Checking the schema for schemas, this seems to be allowed according to
XSD second edition, but not the first edition!

Possibly a case of use with caution!

Pete.
--
=============================================
Pete Cordell
Tech-Know-Ware Ltd
for XML to C++ data binding visit
http://www.tech-know-ware.com/lmx
(or http://www.xml2cpp.com)
=============================================
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top