You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by "Gregor J. Rothfuss" <gr...@apache.org> on 2005/06/29 16:30:21 UTC

Re: ASF Standard for site.xml aka sitetree.xml

Nicola Ken Barozzi wrote:

>>> I would be even more supportive if Lenya and Cocoon adopt the Maven one,
>>> so that we would have a single format for all these projects.
>> You mean http://maven.apache.org/maven2/site.html ?

> And here is how we could do it instead:
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <project name="Maven">
>   <body>
>     <links>
>       <!-- these are the tabs -->
> 
>       <item id="apache" name="Apache" href="http://www.apache.org/" />
>       <item name="Maven 1.0" href="http://maven.apache.org/"/>
>     </links>
> 
>     <menu name="Maven 2.0">
>       <!-- this is the menu -->
> 
>       <item id="intro" name="Introduction" href="index.html"/>
>       <item id="download" name="Download" href="download.html"/>
>       <item name="Road Map" href="roadmap.html" />
>     </menu>
> 
>     ...
>   </body>
> </project>

that in itself would not be sufficient. i suppose you could do:

      <menu name="Maven 2.0">
        <!-- this is the menu -->
        <item id="intro" name="Introduction" href="index.html"/>
        <item id="download" name="Download" href="download/">
           <item id="1-4" name="1.4" href="1.4.html">
           <item xml:lang="en" id="1-2" name="1.2" href="1.2.en.html">
           <item xml:lang="de" id="1-2" name="1.2" href="1.2.de.html">
        <item visibleinnav="false" name="Road Map" href="roadmap.html" />
      </menu>

in essence, augment the maven format with additional attributes as 
required. i suppose maven does not validate site.xml?


Re: ASF Standard for site.xml aka sitetree.xml

Posted by Nicola Ken Barozzi <ni...@apache.org>.
Gregor J. Rothfuss wrote:
...
> i suppose you could do:
> 
>      <menu name="Maven 2.0">
>        <!-- this is the menu -->
>        <item id="intro" name="Introduction" href="index.html"/>
>        <item id="download" name="Download" href="download/">
>           <item id="1-4" name="1.4" href="1.4.html">
>           <item xml:lang="en" id="1-2" name="1.2" href="1.2.en.html">
>           <item xml:lang="de" id="1-2" name="1.2" href="1.2.de.html">
>        <item visibleinnav="false" name="Road Map" href="roadmap.html" />
>      </menu>
> 
> in essence, augment the maven format with additional attributes as
> required. 

Yes, that's it :-)

Just one thing: visibleinnav="false"... in Forrest we just delete the
@name to make it invisible...

> i suppose maven does not validate site.xml?

That's not so important, as they could do so easily if they want to be
able to render Forrest or Lenya sites. The goal is to not make a
completely different format just for the sake of it.

In any case, xml-lang is another namespace, and the id IIRC can always
be there, so probably it would still validate.

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)
---------------------------------------------------------------------