469,625 Members | 1,692 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

XSD: Extensible like XSLT

Udo
Hello,

XSLT-defined elements can have additional attributes - is this possible
with XSD, too?
Thanks and greetings
Udo

Aug 12 '06 #1
1 1020


Udo wrote:

XSLT-defined elements can have additional attributes - is this possible
with XSD, too?
Yes, I think so, there are certain elements (e.g. appinfo) in a schema
that can have any user defined content and attributes in other
namespaces are allowed too.
I can't currently find the text saying that in the XML schema
specification but the schema for schemas
<http://www.w3.org/TR/xmlschema-1/#normative-schemaSchemahas this type
definition:

<xs:complexType name="openAttrs">
<xs:annotation>
<xs:documentation>
This type is extended by almost all schema types
to allow attributes from other namespaces to be
added to user schemas.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:restriction base="xs:anyType">
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
--

Martin Honnen
http://JavaScript.FAQTs.com/
Aug 13 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by marcum williams | last post: by
2 posts views Thread by Michael | last post: by
1 post views Thread by Clodo | last post: by
5 posts views Thread by Gilgamesh | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.