[dsdl-discuss] Re: Concurrent (overlapping) structures

From: Eric van der Vlist <vdv@dyomedea.com>
Date: Wed Jun 04 2003 - 11:41:08 UTC

Martin,

Martin Bryan said:
>
> While I think this is a useful case to be added to the list, I don't
> think its the same case as Alex is talking about. Remember that for
> applications such as loose-leaf publication you need to keep two
> concurrent structures, one for the logical data and one for the
> presented data. In this case what we need is to be able to take two
> subsets of information out of a single dataset, without any
> transformation. OK, so we can do this by assigning separate namespaces
> to the different datamodels, but what happens if these two datamodels
> do not overlap cleanly. SGML had an answer to this problem. XML does
> not have an answer, and neither does RELAX NG. What we really need is a
> mechanism that says "ignore any markup in namespace X and parse against
> my first model, then ignore any markup in namespace Y and parse against
> my second model".

What do you mean by parse?

I thought DSDL was about transformation (any transformation, not only XSLT
but also namespace isolation and any other transformation) and validation
but not about parsing (except that we've said that we could plug parsers
parsing anything as long as thay gave us XML infosets).
What we can say right now is:

Transform the XML document to ignore any markup in namespace X and
validate it against my first schema and then transform the source document
to ignore any markup in namespace Y and validate it against my second
schema.
Or:

Use parser A to parse the document D ignoring any markup in namespace X
and validate it against my first schema and use parser B to parse the
document D ignoring any markup in namespace Y and validate it against my
second schema.
Doesn't one (or both) of these schemes fit with what you mean?

The second one could even support LMNL ASAIK.

Eric

-- 
Freelance consulting and training.
                                            http://dyomedea.com/english/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------
--
DSDL members discussion list
To unsubscribe, please send a message with the
command  "unsubscribe" to dsdl-discuss-request@dsdl.org
(mailto:dsdl-discuss-request@dsdl.org?Subject=unsubscribe)
Received on Wed Jun 4 13:41:08 2003

This archive was generated by hypermail 2.1.8 : Fri Dec 03 2004 - 14:00:27 UTC