Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


"Overriding" Attribute Declarations

From: "Eliot Kimber" <ekimber@---------------.--->
To: <xmlschema-dev@---.--->
Date: 6/11/2007 8:11:00 PM
In XML DTDs, one can override the declaration of an attribute declared 
in an external declaration set by declaring the overriding version 
earlier, e.g.:

<!DOCTYPE foo SYSTEM "mybase.dtd" [
   <!ATTLIST foo bar CDATA #IMPLIED
]>
<foo bar="baz/>

Where mybase.dtd declares the element type "foo" with the attribute bar 
with a different type.

I don't see an obvious way to do with with XSD using redefine. At least, 
when I add a declaration to a redefine that otherwise works (to add a 
new attribute not declared in the base type being redefined), Xerces 2.9 
says I have a duplicate attribute declaration.

I didn't see anything about this specifically in the XSD Primer and I'm 
afraid I find the formal definition largely impenetrable (at least at 
this late hour).

Have I missed something?

Note, in my specific case I don't have control over the base schemas, so 
I can't do something like pull the attributes to be redefined out into 
their own attribute group, although I'm not sure that would solve the 
problem.

Thanks,

Eliot
-- 
W. Eliot Kimber
Professional Services
Innodata Isogen
8500 N. Mopac, Suite 402
Austin, TX 78759
(214) 954-5198

ekimber@i...
www.innodata-isogen.com


From ht@i... Tue Jun 12 09:10:23 2007
Received: from lisa.w3.org ([128.30.52.41])
	by fri


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent