W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2003

Applicative attribute

From: Bruno Chatel <bcha@chadocs.net>
Date: Fri, 14 Feb 2003 11:31:03 +0100
Message-ID: <005101c2d414$2d02ae20$0600a8c0@chadocshome.com>
To: <xmlschema-dev@w3.org>
Cc: "Bruno Chatel" <bcha@chadocs.net>


I want to use some "applicative attributes" in XMLdocuments
that are processed with schemas.
The idea I found was to use a particular namespace for these attributes
without modifying my "target" schemas.

Something like this :

doc.xsd : targerNamespace = http://www.mutu-xml.org/mydoc
    describes doc components (content model) in this namespace
    an element test is only declared as empty witout attributes

doc.xml : 
  <doc xmlns="http://www.mutu-xml.org/mydoc" 
    xsi:schemaLocation="http://www.mutu-xml.org/mydoc doc.xsd">
    <test app:id="1"/>

But it is rejected by a validator (such as Xerces) indicating that
  app:id us not allowed to appear in element 'test'
I am ok with this message... but is there a way to indicate that all
attributes of a namespace ( particlular one or any other than the targetNamespace)
 must be ignored ?

any idea ?

thanks in advance


-- bruno --
Bruno Chatel
Tel : (+33) 4 96 11 14 57
Received on Friday, 14 February 2003 05:29:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:09 UTC