- From: Alessandro Triglia <sandro@mclink.it>
- Date: Mon, 24 Mar 2003 14:54:19 -0500
- To: <xmlschema-dev@w3.org>
Please ignore my previous message. In "Validation Rule: Wildcard allows Namespace Name" I see that unqualified names are not allowed. Alessandro > -----Original Message----- > From: Alessandro Triglia [mailto:sandro@mclink.it] > Sent: Monday, March 24, 2003 13:14 > To: 'xmlschema-dev@w3.org' > Subject: Non-schema attributes > > > Hi > > I have a question about the use of non-schema attributes in > schema documents. > > Since all schema element declarations contain an attribute > wildcard with a namespace constraint of ##other, I understand that: > > - any attributes are allowed on these elements, besides the > attributes declared in the Schema for Schemas, provided that > they don't belong to the XML Schema namespace. In particular, > *unqualified* attributes are allowed. > > Is this correct? > > If yes, I understand that the following schema document is valid: > > -------------------------------------------------------------- > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:xhtml="http://www.w3.org/1999/xhtml" > xmlns="http://www.example.com" > targetNamespace="http://www.example.com"> > <xs:element name="elem1" age="42" type="Address"/> > <xs:element name="elem2" type="xhtml:blockquote"/> > <xs:attribute name="attr1" > type="xsl:quantity" > targetNamespace="http://www.example.com"/> > </xs:schema> > -------------------------------------------------------------- > > > Notice the attributes "age" on the first "element" element > and "targetNamespace" on the "attribute" element. Both > of these attributes are obviously meaningless, but are they > actually forbidden? > > Alessandro Triglia > OSS Nokalva > > >
Received on Monday, 24 March 2003 14:55:11 UTC