Re: [xsl] support extension in xalan2.6.0

Subject: Re: [xsl] support extension in xalan2.6.0
From: "Werner, Wolfgang" <mail@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 13 Oct 2004 17:40:59 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Majirus,

what about function-available("function-available")?

Just joking,
Wolfgang

Janvier Majirus FANSI wrote:

| Hi dear Werner,
| This test doesn't work at my machine.
| But when i use dyn:evaluate function without make a test using
| function-available, it worked.
| It seems that there is a problem with the function "function-available".
|
| Thanks
|
| Majirus
|
|> From: "Werner, Wolfgang" <mail@xxxxxxxxxxxxxxxxxxx>
|> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
|> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
|> Subject: Re: [xsl] support extension in xalan2.6.0
|> Date: Wed, 13 Oct 2004 11:44:57 +0200
|>
| Hi,
|
| I thought I replied yesterday, but somehow it didn't arrive on the list.
| ~ Marius, did I reply to you exclusively?
| Anyway here it is again:
| I tried your test stylesheet and it worked with xalan 2.6.0.
| Here is exactely what I did:
| - put all jars from the xalan-j-2_6_0 distribution in one direectory
| - unset CLASSPATH
| - run 'java -jar xalan.jar -in text.xml  -xsl checkForDynEvaluate.xsl',
| with test.xml being an arbitrary XML file.
|
| checkForDynEvaluate.xsl looks like this:
| <xsl:stylesheet version="1.0"
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
| ~  xmlns:dyn="http://exslt.org/dynamic";>
| <xsl:template match="/">
| ~  <xsl:if test="function-available('dyn:evaluate')">
| ~    <p> exslt extension is available</p>
| ~  </xsl:if>
| </xsl:template>
| </xsl:stylesheet>
|
| The output says>
| <?xml version="1.0" encoding="UTF-8"?>
| <p xmlns:dyn="http://exslt.org/dynamic";> exslt extension is available</p>
|
| Does this test work at your machine?
|
| Regareds,
| Wolfgang
|
| Janvier Majirus FANSI wrote:
| | Hi all,
| |
| | I installed xalan 2.6.0 now independently to cocoon.
| | i setted  xercesImpl.jar, xml-apis.jar, and xalan.jar within my
| classpath.
| | Within a simple stylesheet, i added these instructions:
| | xmlns:dyn="http://exslt.org/dynamic";
| | <xsl:template match="/">
| | <xsl:if test="function-available('dyn:evaluate')">
| |  <p> exslt extension is available</p>
| | </xsl:if>
| | </xsl:template>
| |
| | when i called this stylesheet in command line: java
| | org.apache.xalan.xslt.Process -in doc.xml -xsl doc.xsl;
| | xalan returned: XSLT Error
| | (javax.xml.transform.TransformerException):Unknow error in xpath.
| |
| | Should anyone know what appened? what is wrong? This version claims to
| | support EXSLT extension, do i make other configuration tasks? Any
| | remarks from you are welcome.
| |
| | I thank you in advance
|>
|>

| _________________________________________________________________
| MSN Search, le moteur de recherche qui pense comme vous !
| http://search.msn.fr



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBbUyLqjaicDyx8o8RAlSYAJ9h3A3M866UC3phT4kDxFEkeFgEcgCdFrme
iJT1o9oeHYKuVWVBXS29ts8=
=JNz6
-----END PGP SIGNATURE-----

Current Thread