On Thursday, October 3, 2002, at 03:28  AM, Frédéric Glorieux wrote:

> XML code in cocoon colors
> Here is as an attached file (in hope that will work)
> Fastest way to test it, open it in an XSL compliant browser (IE 5.5 
> under
> windows, others ?)
> Remove stylesheet processing instruction to compare

Clever stylesheet, Frédéric, I love it!! (The colors are awful IMO, but 
that can be changed ;)

I think we should replace the ugly view-source.xsp with your 
stylesheet, the output is so much better. In case you're not familiar 
with this, the src/webapp/samples/docs/samples/slides/view-source.xsp 
is doing a similar job as your stylesheet, except that is a Java 
program hidden inside an XSP page, which constructs a DOM tree and 
walks on it to generate the output.

Frédéric, would you like to pick up the task of refactoring the 
existing src/webapp/samples/sitemap.xmap to use your stylesheet instead 
of view-source.xsp? I'd gladly incorporate the changes, together with 
your stylesheet of course, into Cocoon.

> About webapp hierarchy
> For our apps, we usually share resources (like this one, or tuned error
> messages and other xsl, js, css)
> They are in a WEB-INF/res directory as if it was updatable (like a jar)
> Some xsl seems to be duplicated in cocoon webapp, can't cocoon show a 
> good
> practice on this question ?

I think some of these duplicates are historic. You're more than welcome 
to point out these duplicates and provide a patch as an alternative.

Best regards,
-- 
Ovidiu Predescu <[EMAIL PROTECTED]>
http://webweavertech.com/ovidiu/weblog/ (Weblog)
http://www.geocities.com/SiliconValley/Monitor/7464/ (Apache, GNU, 
Emacs ...)

> ----- Original Message -----
> From: "Joerg Heinicke" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, October 03, 2002 1:41 AM
> Subject: Re: generic resources
>
>
>> Hello Frédéric,
>>
>> can you provide the code, either (if it's not too much) on the list
>> (zipped) or as patch in bugzilla? I'm really interested in some code
>> better than simple-xml2html.xsl.
>>
>> Regards,
>>
>> Joerg
>>
>> Frédéric Glorieux wrote:
>>>     Hello developpers
>>>
>>> I'm essentially a cocoon user (degree: coding pipes like serializers 
>>> and
> so
>>> on) but I got some tools in my box wich can take a place in webapp
> distrib,
>>> especially :
>>>
>>> an xsl stylesheet to show xml source in html, well commented for
> adaptation
>>> to replace simple-xml2html.xsl
>>>     - interesting features
>>>             forget MS.IE styles and give your colors to XML
>>>             all xmlns:*="uri" attributes
>>>             no more "+" to clean-up after copy/paste (but still 
>>> toggles
> on
>>> tags, with DOM  conformant JS)
>>>             text with <br/> - &amp; - non breakable space
>>>     - usage
>>>             global xsl on input
>>>             as an import on xml blocks (for documentation)
>>>
>>> Don't you think that cocoon needs is own style to show xml ? Source 
>>> code
>>> given on request, other features possible (if you have ideas).
>>
>>
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to