Presentation is loading. Please wait.

Presentation is loading. Please wait.

Can schemas help SVG interwork with other markup vocabularies? MURATA Makoto (FAMILY Given) International University of Japan XHTML XForms SVG XML Events.

Similar presentations


Presentation on theme: "Can schemas help SVG interwork with other markup vocabularies? MURATA Makoto (FAMILY Given) International University of Japan XHTML XForms SVG XML Events."— Presentation transcript:

1 Can schemas help SVG interwork with other markup vocabularies? MURATA Makoto (FAMILY Given) International University of Japan XHTML XForms SVG XML Events

2 Markup vocabularies mentioned in SVG specs XHTML MathML sXBL (formerly RCC) XForms XML Events SMIL XLink RDF user-defined vocabularies

3 An example: XHTML + SVG + MathML

4 XML source Complex Compound Document div.attention{ font-size:small;color:red; } div.mathml_graph {background:white;border:gray solid 1px;float:right; width:5cm;margin:5px;text-align:center;} div.mathml_main {margin:50px} Complex Compound Document Various Vocabularies are packed in XHTML. SVG

5 SVG and sXBL Red text.

6 Schemas and Schema Languages Schemas A formal description of the syntax of a markup vocabulary Schema languages DTD W3C XML Schema RELAX NG

7 Three reasons for using schemas To provide rigorous, concise, and human- readable description of a markup vocabulary. To determine whether an XML document is indeed written in that markup vocabulary [validation ]. To easily build application programs dedicated to that markup vocabulary [data binding ].

8 Schemas for non-monolithic documents We have an RNG schema for SVG2. We have an RNG schema for sXBL. Then, is it easy to create a schema for the combination of SVG2 and sXBL? Not really XHTML2 + XForms+ SVG + XML Events + sXBL + SMIL is hoplessly difficult.

9 Nobody knows everything. SVG XForms XHTML2 sXBL

10 Requirements on validation#1 It should be possible to combine schemas representing vocabularies easily. It should be possible to divide non- monolithic documents into pieces and then validate each piece against one of the schemas. (divide-and-validate)

11 Do existing schema languages meet these requirements? No, you have to understand all schemas very well and change them. No, you have to validate the entire document against the combination of all schemas. W3C XML Schema RELAX NG

12 Requirements on validation#2 It should be possible to use different schema languages for different vocabularies Validators for many schema languages should work together.

13 Do existing schema languages meet these requirements? No, you are forced to use one schema language No, you have to use one validator. W3C XML Schema RELAX NG

14 Namespace-based Validation Dispatching Language ISO/IEC JTC1 SC34 CD

15 Idea Schema authoring by combining subschemas Each subschema is concerned with one (or a few) namespaces. Different subschemas may be written in different schema languages. Validation (Divide-and-validate) Divide a non-monolithic document into validation candidates. Different validation candidates are dispatched to different validators.

16 Syntax Simply put, (namespace, schema) pairs

17 Processing model schema Non-monolithic document Validation candidate validator DSDL-NVDL engine DSDL-NVDL schema

18 Dividing non-monolithic documents into pieces

19 Implementation overview Validator 1 Validator 2 Validator 3 SAX events … NVDL engine

20 SVG and sXBL Red text.

21 SVG only Red text.

22 sXBL only Red text.

23 User-defined vocabulary only Red text.

24 Standardization

25 ISO/IEC JTC1 SC34 SGML Topic Map RELAX NG Schematron

26 Document Schema Definition Languages 1. Overview 2. Regular-grammar-based validation -- RELAX NG 3. Rule-based validation -- Schematron 4. Namespace-based Validation Dispatching Language -- NVDL 5. Datatypes 6. Path-based integrity constraints 7. Character repertoire validation 8. Declarative document architecture 9. Datatype- and namespace-aware DTDs 10. Validation management

27 History RELAX Namespace(2001) JIS Technical Report ISO/IEC JTC1 Draft Technical Report DSDL Part 4 Committee Draft (2002) Modular Namespaces by James Clark (2003) Namespace Switchboard by Rick Jelliffe (2003) Namespace Routing Language by James Clark (2003) DSDL Part 4 Second Committee Draft (2004)

28 Plan Final Committee Draft (2004?) Final Draft International Standard (2005?) International Standard (2005?)

29 Conclusion and Future Work If the namespace recommendation is the first step, NVDL is the second step for the non-monolithic WWW. Data binding for NVDL is strongly required.

30 Links NRL by James Clark l.html 2 nd CD for NVDL mrt/dsdl/


Download ppt "Can schemas help SVG interwork with other markup vocabularies? MURATA Makoto (FAMILY Given) International University of Japan XHTML XForms SVG XML Events."

Similar presentations


Ads by Google