You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Antonio Gallardo <ag...@agssa.net> on 2005/05/28 01:21:46 UTC
Re: svn commit: r178819 -
/cocoon/branches/BRANCH_2_1_X/src/webapp/stylesheets/system/status2htm
l.xslt
On Vie, 27 de Mayo de 2005, 15:47, vgritsenko@apache.org dijo:
> Author: vgritsenko
> Date: Fri May 27 13:47:38 2005
> New Revision: 178819
>
> URL: http://svn.apache.org/viewcvs?rev=178819&view=rev
> Log:
> add xalan / xerces version info
Is change this saxon compatible?
Best Regards,
Antonio Gallardo.
>
> Modified:
> cocoon/branches/BRANCH_2_1_X/src/webapp/stylesheets/system/status2html.xslt
>
> Modified:
> cocoon/branches/BRANCH_2_1_X/src/webapp/stylesheets/system/status2html.xslt
> URL:
> http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/webapp/stylesheets/system/status2html.xslt?rev=178819&r1=178818&r2=178819&view=diff
> ==============================================================================
> ---
> cocoon/branches/BRANCH_2_1_X/src/webapp/stylesheets/system/status2html.xslt
> (original)
> +++
> cocoon/branches/BRANCH_2_1_X/src/webapp/stylesheets/system/status2html.xslt
> Fri May 27 13:47:38 2005
> @@ -23,7 +23,9 @@
>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> - xmlns:status="http://apache.org/cocoon/status/2.0">
> + xmlns:status="http://apache.org/cocoon/status/2.0"
> + xmlns:xalan="http://xml.apache.org/xalan"
> + exclude-result-prefixes="xalan">
>
> <xsl:param name="contextPath"/>
>
> @@ -39,6 +41,11 @@
> <h1><xsl:value-of select="@status:host"/> - <xsl:value-of
> select="@status:date"/></h1>
> <h2>Apache Cocoon <xsl:value-of
> select="@status:cocoon-version"/></h2>
> <xsl:apply-templates/>
> +
> + <!--
> + - Add Xalan / Xerces information using custom Xalan extension
> + -->
> + <xsl:apply-templates select="xalan:checkEnvironment()"/>
> </body>
> </html>
> </xsl:template>
> @@ -92,5 +99,21 @@
> </xsl:otherwise>
> </xsl:choose>
> </xsl:template>
> -
> +
> + <!--
> + - Process Xalan extension output
> + -->
> + <xsl:template match="checkEnvironmentExtension">
> + <h2>Xerces, Xalan</h2>
> + <ul><xsl:apply-templates
> select="EnvironmentCheck/environment/item[starts-with(@key,
> 'version.')]"/></ul>
> + </xsl:template>
> +
> + <xsl:template match="item">
> + <li style="width: 40%">
> + <span class="description"><xsl:value-of select="@key"/>:</span>
> + <xsl:text> </xsl:text>
> + <xsl:value-of select="."/>
> + </li>
> + </xsl:template>
> +
> </xsl:stylesheet>
>
>
>
Re: svn commit: r178819 - /cocoon/branches/BRANCH_2_1_X/src/webapp/stylesheets/system/status2htm
l.xslt
Posted by Vadim Gritsenko <va...@reverycodes.com>.
Joerg Heinicke wrote:
> On 28.05.2005 01:21, Antonio Gallardo wrote:
>
>> On Vie, 27 de Mayo de 2005, 15:47, vgritsenko@apache.org dijo:
>>
>>> Author: vgritsenko
>>> Date: Fri May 27 13:47:38 2005
>>> New Revision: 178819
>>>
>>> URL: http://svn.apache.org/viewcvs?rev=178819&view=rev
>>> Log:
>>> add xalan / xerces version info
>>
>>
>> Is change this saxon compatible?
>
>
> I guess not. But the docbook stylesheets do much on testing for the XSLT
> processor in use like:
>
> system-property('xsl:vendor') [1]
> function-available('function-name') [2]
> element-available('element-name') [3]
>
> I guess we can copy from one or the other sample. For status2html.xslt
> "function-available('xalan:checkEnvironment')" would be the best one I
> think.
Exactly. Fix is on the way.
Vadim
Re: svn commit: r178819 - /cocoon/branches/BRANCH_2_1_X/src/webapp/stylesheets/system/status2htm
l.xslt
Posted by Joerg Heinicke <jo...@gmx.de>.
On 28.05.2005 01:21, Antonio Gallardo wrote:
> On Vie, 27 de Mayo de 2005, 15:47, vgritsenko@apache.org dijo:
>
>>Author: vgritsenko
>>Date: Fri May 27 13:47:38 2005
>>New Revision: 178819
>>
>>URL: http://svn.apache.org/viewcvs?rev=178819&view=rev
>>Log:
>>add xalan / xerces version info
>
>
> Is change this saxon compatible?
I guess not. But the docbook stylesheets do much on testing for the XSLT
processor in use like:
system-property('xsl:vendor') [1]
function-available('function-name') [2]
element-available('element-name') [3]
I guess we can copy from one or the other sample. For status2html.xslt
"function-available('xalan:checkEnvironment')" would be the best one I
think.
Joerg
[1]
http://cvs.sourceforge.net/viewcvs.py/docbook/xsl/fo/callout.xsl?rev=1.12&view=markup
(line 25)
[2]
http://cvs.sourceforge.net/viewcvs.py/docbook/xsl/html/callout.xsl?rev=1.11&view=markup
(line 36)
[3]
http://cvs.sourceforge.net/viewcvs.py/docbook/xsl/html/chunker.xsl?rev=1.24&view=markup
(lines 47, 51, 62)