cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Franz Philipp Moser <>
Subject Re: XML on the browser
Date Wed, 30 Jul 2003 13:51:55 GMT
Am Mittwoch, 30. Juli 2003 15:15 schrieb Galia Angelova:
> Hello,
> I have the following question:
> Is it possible to use XML and XSL  on the browser with cocoon?

Yes it is

> If "yes"  - are there any examples?

If you are familiar with XML you know the answer. In your xml file you have to 
add the following line, after the xml declaration, for clientside processing.

<?xml-stylesheet type="text/xsl" href="simple.xsl" ?>

or you maybe want to use a css-stylesheet to format the xml

<?xml-stylesheet type="text/css" href="simple.css" ?>

In the cocoon sitemap you just have to serialize xml with the correct mime 

text/xml for the xml-files
text/xsl for the xsl files

I think :)

But I think you wont need cocoon if you do client side xml processing.

<snip />

cu Philipp
XML is the ASCII for the new millenium.
(Cocoon documentation)

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message