Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XSD: Extensible like XSLT

Reply
Thread Tools

XSD: Extensible like XSLT

 
 
Udo
Guest
Posts: n/a
 
      08-12-2006
Hello,

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


Thanks and greetings
Udo

 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      08-13-2006


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-schemaSchema> has 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/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gui implementation in extensible framework Twisted Java 5 03-31-2006 03:19 PM
Building an Extensible Web Framework Lucas Tam ASP .Net 2 10-13-2005 03:55 PM
should a dialog implementation be extensible - Java 1 04-06-2005 08:09 AM
sockSvr - an extensible web server and an embedable component http://mylinuxisp.com/~vmdd_tech Java 0 05-23-2004 11:55 AM
Regarding BEEP (Blocks Extensible Exchange Protocol) Ravi Shankar Java 0 01-04-2004 03:37 AM



Advertisments