You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Johannes Becker <jo...@hotmail.com> on 2003/10/15 11:35:07 UTC
"directory tree" like presentation of xml contents
Hi,
I want to present xml like this:
<a>
<a1>bla</a1>
<a2>bla</a2>
<a3>bla</a3>
<a4>
<b1>bla</b1>
<b2>
<c1>bla</c1>
</b2>
</a4>
</a>
in a nice "directory tree"-style.
I looked around for a suitable xsl, but I couldn't find one.
Has anyone got one/ knows of one?
Thanks
Jonny
_________________________________________________________________
5 neue Buddies = 50 FreeSMS. http://messenger-mania.msn.de MSN Messenger
empfehlen und kräftig abräumen!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: "directory tree" like presentation of xml contents
Posted by Tony Collen <co...@umn.edu>.
Lars Huttar wrote:
> Internet Explorer will display XML in an indented, tree-like
> style (if there is no attached stylesheet).
>
> You can also look at the "Pretty-printing XML" FAQ at
> http://www.dpawson.co.uk/xsl/sect2/pretty.html
>
> By the way this is a topic for an XML or XSL list rather than Cocoon.
> (Though I understand the desire not to have to subscribe to umpteen
> different lists just to learn to use Cocoon.)
If you look through the Cocoon samples, you'll notice that there's a "Pretty Content" link at the
top of many pages. If you append "?cocoon-view=pretty-content" (And the view is defined properly in
your sitemap), you will get the nice expandable tree-view.
Regards,
Tony
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: "directory tree" like presentation of xml contents
Posted by Lars Huttar <la...@sil.org>.
> I want to present xml like this:
>
> <a>
> <a1>bla</a1>
> <a2>bla</a2>
> <a3>bla</a3>
> <a4>
> <b1>bla</b1>
> <b2>
> <c1>bla</c1>
> </b2>
> </a4>
> </a>
>
> in a nice "directory tree"-style.
>
> I looked around for a suitable xsl, but I couldn't find one.
> Has anyone got one/ knows of one?
>
> Thanks
> Jonny
Internet Explorer will display XML in an indented, tree-like
style (if there is no attached stylesheet).
You can also look at the "Pretty-printing XML" FAQ at
http://www.dpawson.co.uk/xsl/sect2/pretty.html
By the way this is a topic for an XML or XSL list rather than Cocoon.
(Though I understand the desire not to have to subscribe to umpteen
different lists just to learn to use Cocoon.)
HTH,
Lars
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org