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

Re: Formattings in XML Document!

From: Bob Schloss <rschloss@us.ibm.com>
Date: Wed, 13 Feb 2002 11:58:16 -0500
To: mogot@web.de, xmlschema-dev@w3.org
Message-ID: <OF0204821E.1B66D5AD-ON85256B5F.005BD94A@pok.ibm.com>

Besides declaring the namespaces of MathML and/or XHTML in your schemas,
you may want to define your own complexType for the content of element TexT
in which you include wildcard particles, such as
 <xs:any namespace="http://www.w3.org/1998/Math/MathML" processContents
="skip" minOccurs="0"/>
(you could use processContents="lax").

Please see these sections of the Schema spec:
http://www.w3.org/TR/xmlschema-1/#Wildcards
http://www.w3.org/TR/xmlschema-1/#Complex_Type_Definitions

I think it would be nice to have a fuller explanation of this as a question
in the XML Schema FAQ:
http://www.schemavalid.com/faq/xml-schema.html

            Good luck,
            Bob



mogot@web.de@w3.org on 02/13/2002 05:22:05 AM

Sent by:    xmlschema-dev-request@w3.org


To:    xmlschema-dev@w3.org
cc:
Subject:    Formattings in XML Document!



Hello people,

I defined the structure of a document in a schema. In generated XML
documents  I would like to apply the formatting as bold, turned up , turned
down and to apply mathematical signs without defining the needed signs in
my schema for that.

The formatting and additional characters are supposed to occur per example
in a element <TexT> ..</TexT>. This element was defined as string in the
schema. Is it possible that I only declare the Namespaces of MathML
(Mathematical Markup Language) and xhtml to include the W3C schemas of
these elements (as <mrow>..</mrow> <mn>..</mn> and <sup>..</sup>,
<sub>..<sub>) in my primary schema and to use these in the <TexT> element
without defining these elements?


Please help me fast, it is urgent.
________________________________________________________________
Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr!
Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13
Received on Wednesday, 13 February 2002 11:59:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:26 GMT