OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Mixing my vocabularies

[ Lists Home | Date Index | Thread Index ]
  • To: <xml-dev@lists.xml.org>
  • Subject: Mixing my vocabularies
  • From: "Mark Seaborne" <MSeaborne@origoservices.com>
  • Date: Tue, 26 Mar 2002 10:35:08 -0000
  • Thread-index: AcHUD4dnbGaMGoVvQTWVUaj8vrzIIAAnMRng
  • Thread-topic: [xml-dev] XML in the alleged Real World (was Re: [xml-dev]DoesXML-Dev m...

Hi

Can I inter-mix other vocabularies with an XML Schema defined vocabulary in an instance document, and still have a valid document? If so, how? 

N.B. the answer should ideally not involve any changes to the XML schema, just to the conformant document (e.g. I cannot use <xsd:anyAttribute namespace="##other"/>, etc).

This is the sort of thing I have in mind:

<message xmlns="http://www.mynamespace.com"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.mynamespace.com my_schema_location" xmlns:fred="http://fred";>
<my_valid_element fred:attribute_from_another_vocabulary="hello">...</my_valid_element>
</message>

I assume that the above would fail validation.

Thanks for any help.

Mark Seaborne




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS