472,119 Members | 1,792 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

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 1088


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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.