cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ross Burton" <ross.bur...@mail.com>
Subject Re: First live Cocoon2 site? [cheat]
Date Tue, 23 May 2000 18:19:15 GMT
> What I intended to say is that
>
>   <person xlink:href="http://www.apache.org/~stefano/"
> xlink:type="simple">
>    <name>Stefano Mazzocchi</name>
>    <email>stefano@apache.org</email>
>   </person>
>
> is much easier than
>
>   <person xlink:type="extended">
>    <link xlink:href="http://www.apache.org/~stefano/"
>          xlink:type="locator" xlink:role="remote"/>
>    <go xlink:from="local" xlink:to="remote"
>        xlink:show="replace" xlink:actuate="onRequest"/>
>    <name xlink:role="local">Stefano Mazzocchi</name>
>    <email xlink:role="local">stefano@apache.org</email>
>   </person>

ARGH!  :-)

> even if they are totally equivalent in functionality. Don't be scared by
> verbosity, thought! since, given a proper schema, the right above can be
> written as
>
>   <person>
>    <link xlink:href="http://www.apache.org/~stefano"/>
>    <go/>
>    <name>Stefano Mazzocchi</name>
>    <email>stefano@apache.org</email>
>   </person>

A bit better...

> When XMLSchema will be a reality, it would be even simpler
>
>   <person homepage="http://www.apache.org/~stefano/">
>    <name>Stefano Mazzocchi</name>
>    <email>stefano@apache.org</email>
>   </person>
>
> then the attribute "homepage" would inherit "xlink:href", without
> requiring document writers to ever know anything about XLink at all!
> (which is why HTML was so successful)

Possible now?  I've read that Xerces supports Schema validation, but does it
support this sort of inheritance?

Ross Burton


Mime
View raw message