Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: using multiple namespaces in one element

From: "Michael Kay" <mike@--------.--->
To: <info@-------.-->, "'XML Schema List'" <xmlschema-dev@--.--->
Date: 7/9/2008 11:26:00 PM
I think the error message is complaining about an error in your instance
document which is nothing to do with the schema - you have used the prefix
mml in the instance without declaring it in an
xmlns:mml="http://www.w3.org/1998/Math/MathML" declaration.

Having fixed that, to get the instance validated against the MathML schema
you then need to do two things:

(a) use xsl:import in your schema document to import the schema for the
MathML namespace

(b) use processContents="strict" on the xs:any element to ensure that any
MathML elements matching the wildcard are validated against their schema
definitions.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: xmlschema-dev-request@w... 
> [mailto:xmlschema-dev-request@w...] On Behalf Of Andreas Peter
> Sent: 09 July 2008 21:48
> To: XML Schema List
> Subject: using multiple namespaces in one element
> 
> 
> Hello list users,
> 
> I have an element which should contain elements from MathML. 
> The problem is when I include an MathML example into the 
> instance document the parser says that the prefix mml is not 
> bounded. MathML should only be possible inside of the 
> mathphrase element.
> 
>     <xs:element name="mathphrase">
>         <xs:complexType>
>             <xs:choice>
>                 <xs:any 
> namespace="http://www.w3.org/1998/Math/MathML" 
> minOccurs="0" maxOccurs="unbounded"/>
>             </xs:choice>
>         </xs:complexType>
>     </xs:element>
> 
> How can I include the whole MathML namespace into my schema?
> 
> I am thankful for every hint,
> 
> Andreas
> 


From adam@f... Thu Jul 10 05:23:00 2008
Received: from farnsworth.w3.org ([128.30.52.43


transparent
Print
Mail
Digg
delicious
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