cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: Taglib Documentation...
Date Thu, 31 Aug 2000 13:51:28 GMT
Per Kreipke wrote:
> 
> Not sure if anyone else will find this useful but I got tired of reading
> through the source XSL files to find out what 'functions' were in each
> taglib. And I couldn't find any other documentation (I did ask this list
> earlier).
> 
> Attached are an XSP page and a XSLT stylesheet which read taglib XSL files
> (like cookie.xsl) and write out HTML listing each 'function' within.
> [Attached: tagdocs.xml and tagdocs.xsl]
> 
> If you drop them in a Cocoon directory, make one small code change and bring
> it up in a browser as follows, it will 'document' [no, it doesn't exctract
> english comments, there really weren't any :) ] the selected taglib.
> 
> Example:
> 
> http://localhost/coocoon/tagdocs.xml?file=cookie.xsl
> 
> to list all the available 'functions' in the cookie taglib.
> 
> The one line of code that needs to change (or perhaps not), is the location
> of the taglib files relative to your servlet engine.
> 
> - Open tagdocs.xml.
> - Search for the variable 'baseDir'.
> - Change the relative path which follows to point to your cocoon
> distribution.
> 
> It's currently set for my local install of cocoon 1.7.4, you should only
> have to change some of the front of the path.
> 
> Hope you find it helpful,
> 
> Per.
> 
> P.s. Thanks to the Cocoon team for writing and enforcing excellent patterns
> in the taglibs! Very elegant, though a little terse ;-)
> 
>   ------------------------------------------------------------------------
>                   Name: tagdocs.xml
>    tagdocs.xml    Type: XML Document (text/xml)
>               Encoding: quoted-printable
> 
>                   Name: tagdocs.xsl
>    tagdocs.xsl    Type: XML Document (text/xml)
>               Encoding: quoted-printable
> 
>   ------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org

Sounds great. I'll add this to the samples.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message