XSD to extend a "closed" schema

Hi All,

Apologies if this has been done to death, I'm not even sure of what search
terms might help me here. I've googled and read around but seem to be stuck.

I have a schema (that I'm not allowed to edit) that specifies how
configuration files should be laid out.  From time to time I receive an
update from the committee in charge and the new version must be used.

I have written several tools for editing these config files, and it would be
nice to embed information in the XML (instance document) for the tools to
use when manipulating the XML. So I'm looking for the file to contain
something like:

<official:configitem official:name="a_name" myeditor:x="100"
myeditor:y="100"
myeditor:colour="red"><official:childelement....></official:configitem>

I have googled and read several pages and it looks like I can only do this
if the type definitions in the official XSD include an anyAttribute
declaration (unfortunately that declaration is not present in the official
XSD).

Can anyone confirm or deny whether this is true?

Or is there a way for me to declare in the myeditor XSD that attribute x can
be applied to any element in the official namespace...?

Thanks in advance...

-- 
View this message in context: http://old.nabble.com/XSD-to-extend-a-%22closed%22-schema-tp27212594p27212594.html
Sent from the w3.org - xmlschema-dev mailing list archive at Nabble.com.

Received on Tuesday, 19 January 2010 00:03:17 UTC