Yes, sorry, didn't read this mail before I sent you a message that tells
you just that :-(
Here you are.
Please, be aware that I'm a beginner and that this is all experimenting
stuff. I'm using a servlet that makes it easy to specify multiple xsl
filters, SoccerEntry. entry.xml is the xml as output by the ejb I'm
using; first.xsl is the first xsl applied (to entry.xml thus).
firstResult.xml is the result of this processing. second.xsl is the
second stylesheet that tries to use a java method defined in
TableFormatter.java, and the resulting exception is in
secondResult.exception.
Regards,
Aur�lien
entry.xml
first.xsl
first.xsl
firstResult.xml
Anderlecht |
Standard |
GB Antwerpen |
Club Brugge |
Eendracht Aalst |
Royal Antwerp |
SK Beveren |
Sporting Charleroi |
AA Gent |
Racing Genk |
SK Lierse |
Lokeren |
Lommel |
La Louvière |
Excelsior Mouscron |
RWD Molenbeek |
Sint-Truiden VV |
Westerlo |
second.xsl
secondResult.exception
java.lang.RuntimeException: org.apache.xml.dtm.DTMDOMException: java.lang.RuntimeException: java.lang.RuntimeException: org.apache.xml.dtm.DTMDOMException:
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)
at be.fractals.soccer.servlet.SoccerEntry.doGet(SoccerEntry.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
SoccerEntry.java
TableFormatter.java
Le mardi 18 septembre 2001, � 04:34, [EMAIL PROTECTED] a �crit :
>
> Ah, the original problem was with D10? Then, can you include the entire
> exception and the files (xml, xsl, extension, etc...) and we'll take a
> look?
>
> Thanks,
> Myriam
>
>
>
> jjborie@tekora
> .com To: xalan-
> [EMAIL PROTECTED]
> cc: (bcc: Myriam
> Midy/CAM/Lotus)
> 09/18/01 10:14 Subject: Re: Fwd: Rep:
> AM DTMDOMException + HTML Tables
> Please respond
> to xalan-dev
>
>
>
>
>
>
>
> It' what I've already done ...
>
> Jean-Jacques Borie
> Directeur recherche et d�veloppement
>
> Tekora, changez votre conception des sites web
> http://www.tekora.com
> 17, place de la R�sistance - 92130 Issy-les-Moulineaux
> T�l. : +33 1 55 00 10 03 - Fax : +33 1 55 00 10 10
> Por: +33 660199524
> [EMAIL PROTECTED]
>
> Pour vous inscrire � la Newsletter Tekora :
> http://www.tekora.com/tekora/fr/12_1.html
>
>
>
>
> Myriam_Midy@l
>
> otus.com To: xalan-
> [EMAIL PROTECTED]
>
> cc:
>
> 18/09/2001 Subject: Re: Fwd: Rep:
> DTMDOMException + HTML Tables
> 15:41
>
> Please
>
> respond to
>
> xalan-dev
>
>
>
>
>
>
>
>
> Hi,
> I would actually recommend trying out the latest version of xalan (D10)
> if
> you can. It can be found at
> http://xml.apache.org/dist/xalan-j/.
>
> Myriam
>
>
>
> Aurelien
>
> <aurelien@frac To: xalan-
> [EMAIL PROTECTED]
>
> tals.be> cc: (bcc: Myriam
> Midy/CAM/Lotus)
> Subject: Fwd: Rep:
> DTMDOMException +
> 09/18/01 05:50 HTML Tables
>
> AM
>
> Please respond
>
> to xalan-dev
>
>
>
>
>
>
>
> This is as clear as can be. I posted the first message to the
> cocoon-users ml and Christian answered suggesting that I send this here.
>
>
> Do you know where I can get version D8 of Xalan 2 ?
>
>
> D�but du message r�exp�di� :
>
>> De : Christian Haul <[EMAIL PROTECTED]>
>> Date : Lun 17 sep 2001 11:19:32 Europe/Paris
>> � : [EMAIL PROTECTED]
>> Objet : R�p : DTMDOMException + HTML Tables
>> R�pondre � : [EMAIL PROTECTED]
>> R�pondre � : [EMAIL PROTECTED]
>>
>> On 17.Sep.2001 -- 09:05 PM, Aurelien wrote:
>>> Hi,
>>>
>>> Sorry, this is obviously a beginner's problem trying to fiddle with
>>> Xalan:
>>>
>>> I have this long list of xml nodes that I have to format into an HTML
>>> table. BTW, there *must* be some standard way to do this. However, I
>>> tried to implement a java static method in a helper class, taking a
>>> NodeList as parameter, with the following signature:
>>>
>>> public static String getTable (org.w3c.dom.NodeList nodelist );
>>>
>>> The xsl code is:
>>> ....
>>> <xsl:value-of
>>> select="java:be.fractals.soccer.servlet.TableFormatter.getTable(.)"/>
>>> ....
>>>
>>> But all I get is:
>>>
>>> org.apache.xml.dtm.DTMDOMException: java.lang.RuntimeException:
>>
>> Xalan is in progress of switching its internal structures from DOM to
>> DTM. The version currently shipped with Cocoon is broken in some
>> respects regarding extension functions. This might very well be the
>> case here, too. Please try a different version (e.g. D8) and report
>> this to xalan-dev mailing list.
>>
>> BTW you might be able to use xsl:for-each to build your table.
>>
>> Chris.
>>
>> --
>> C h r i s t i a n H a u l
>> [EMAIL PROTECTED]
>> fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
>>
>> ---------------------------------------------------------------------
>> Please check that your question has not already been answered in the
>> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>>
>> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>> For additional commands, e-mail: <[EMAIL PROTECTED]>
>>
>
>
>
>
>
>
>
>
>
>
>
>