- From: Simon Cox <simon.cox@ned.dem.csiro.au>
- Date: Mon, 22 Nov 1999 09:39:51 +0800
- To: caro@Adobe.COM
- CC: www-rdf-interest@w3.org
- Message-ID: <38389EE7.7797D32B@ned.dem.csiro.au>
This "simplification" is great for the cases where all the
contained elements are in the same group, but if your elements
are from more than one group, then a container mechanism is
necessary.
consider
<D:prop>
<meta>
<rdf:RDF>
<rdf:Description about="" xmlns:dc="...">
<dc:title>
<rdf:Alt>
<rdf:Alt>
<rdf:li xml:lang="en-us">English Title</rdf:li>
<rdf:li xml:lang="fr">French Title</rdf:li>
</rdf:Alt>
<rdf:Alt>
<rdf:li xml:lang="en-us">Alternative English Title</rdf:li>
<rdf:li xml:lang="fr">Alternative French Title</rdf:li>
</rdf:Alt>
</rdf:Alt>
</dc:title>
</rdf:Description>
</rdf:RDF>
</meta>
</D:prop>
Now this could be managed using by using Perry's simplification with
repeated <dc:title> elements as the containers, but by then there is
little gain.
Natural language, algebra and traditional programming languages
use parentheses &| braces for grouping pretty much anything.
But the XML syntax says that all "operators" must have the form
<something>, hence containers like <rdf:Alt> </rdf:Alt>, etc.
They are just wordy parens, plus a little extra semantics ...
"Perry A. Caro" wrote:
>
> Questions: what about containers?
...
> I hope the
> answer isn't conversion to the rdf:_1, rdf:_2, etc. notation, which is no
> simplification if you ask me.
>
> >From a purely XSLT/XPath manipulation point-of-view, the simplification I'd
> like to see is something like the following:
>
> <dc:title>
> <rdf:Alt xml:lang="en-us">English Title</rdf:Alt>
> <rdf:Alt xml:lang="fr">French Title</rdf:Alt>
> </dc:title>
--
Best Simon
Received on Sunday, 21 November 1999 20:47:19 UTC