Hi Andreas,
At 09:11 30/10/2008, Andreas Neumann wrote:
>Hi,
>
>This is a question towards the multinamespace experts: If I have a
>compound document (e.g. XHTML, SVG, MathML) - how can I validate
>these documents properly. Is there a RelaxNG available to cover all
>these vocabularies in a single document? My preferred XML environment
>is currently OxygenXML - I wonder if there are tools either within
>Oxygen or outside (could also be commandline) that allow me to
>validate such documents.
In the last few years, I have been working with document types that
use multiple namespaces (completely unrelated to SVG). These document
types are defined in XML Schemas that describe where each element
can/must be used, e.g. the schema says that the 'formalMetadata'
element needs to contain a 'dc:title' element ('dc' here referring to
Dublin Core), that it can have a 'xml:lang' attribute, etc. An XML
Schema can also specify how elements and attributes from other
namespaces need to be handled, with rules like <xs:anyAttribute
namespace="##other" processContents="lax"/>, <xs:anyAttribute
namespace="##any" processContents="strict"/> or <xs:any
namespace="##other" processContents="lax" minOccurs="0"
maxOccurs="unbounded"/>.
(These examples are from Test Case Description Language 2.0:
<http://bentoweb.org/refs/TCDL2.0.html>.)
If there is no schema for the WICD documents (regardless of the
schema language - XML Schemas, RelaxNG, ISO Schematron, ...), I
wouldn't know how to validate such a document. Namespace declarations
and xsi:schemaLocation aren't enough, as far as I know, because you
still need a description of how element X from namespace A relates to
element Y from namespace B etc.
Best regards,
Christophe
--
Christophe Strobbe
K.U.Leuven - Dept. of Electrical Engineering - SCD
Research Group on Document Architectures
Kasteelpark Arenberg 10 bus 2442
B-3001 Leuven-Heverlee
BELGIUM
tel: +32 16 32 85 51
http://www.docarch.be/
---
Please don't invite me to LinkedIn, Facebook, Quechup or other
"social networks". You may have agreed to their "privacy policy", but
I haven't.
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
------------------------------------
-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/