cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Cabezuelo Vivo" <acv...@yahoo.com>
Subject Re: XSLT working fine with msxml not with Xalan/cocoon
Date Wed, 29 Nov 2000 15:38:38 GMT
The "xsl:value-of" element must have a "select" attribute.

Use this:
<xsl:for-each select="EEE">
    <xsl:value-of select="."/>
</xsl:for-each>

Don't trust much on MS standard implementations.
___
Antonio Cabezuelo


----- Original Message -----
From: Didier Imbreckx <dimbreckx@met.wallonie.be>
To: <cocoon-users@xml.apache.org>
Sent: Wednesday, November 29, 2000 4:26 PM
Subject: XSLT working fine with msxml not with Xalan/cocoon


> I need some expert help/explanation.
>
> The following xsl file  is working fine with msxml, but I 'm receiving en
> error "org.apache.xalan.xslt.XSLTProcessorException" on Xalan/cocoon.
>
> Here is my xml file (test.xml):
> <?xml version="1.0" encoding="iso-8859-1"?>
> <?xml-stylesheet href="test.xsl" type="text/xsl" ?>
> <AAA>
>  <BBB>
>   <CCC>C1</CCC>
>   <DDD>D1</DDD>
>   <EEE>E1</EEE>
>   <EEE>E2</EEE>
>   <EEE>E3</EEE>
>  </BBB>
> </AAA>
>
> Here is the xsl file (test.xsl)
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <?cocoon-process type="xslt"?>
> <xsl:template match="/">
> <HTML>
> <HEAD>
>    <TITLE>Test</TITLE>
> </HEAD>
> <BODY>
> <H3 ALIGN="CENTER">Test </H3>
> <CENTER><TABLE BORDER="1">
>  <TR><TD><xsl:apply-templates /></TD></TR>
> </TABLE></CENTER>
> <BR/><BR/>
> </BODY>
> </HTML>
> </xsl:template>
> xsl:template match="AAA">
>  <xsl:for-each select="BBB">
>     <xsl:value-of select="CCC"/><BR/>
>     <xsl:value-of select="DDD"/><BR/>
>     <xsl:for-each select="EEE">
>          <xsl:value-of />
>     </xsl:for-each>
>  </xsl:for-each>
> </xsl:template>
> </xsl:stylesheet>
>
> and here is the error :
> org.apache.xalan.xslt.XSLProcessorException:
>  at java.lang.Throwable.(Compiled Code)
>  at java.lang.Exception.(Compiled Code)
>  at org.xml.sax.SAXException.(Compiled Code)
>  at org.apache.xalan.xpath.XPathException.(Compiled Code)
>  at org.apache.xalan.xslt.XSLProcessorException.(Compiled Code)
>  at org.apache.xalan.xslt.XSLTEngineImpl.error(Compiled Code)
>  at org.apache.xalan.xslt.XSLTEngineImpl.error(Compiled Code)
>  at org.apache.xalan.xslt.ElemValueOf.(Compiled Code)
>  at org.apache.xalan.xslt.StylesheetHandler.startElement(Compiled Code)
>  at org.apache.xalan.xpath.xml.TreeWalker.startNode(Compiled Code)
>  at org.apache.xalan.xpath.xml.TreeWalker.traverse(Compiled Code)
>  at org.apache.xalan.xslt.XSLTEngineImpl.processStylesheet(Compiled Code)
>  at org.apache.xalan.xslt.XSLTEngineImpl.process(Compiled Code)
>  at org.apache.cocoon.transformer.XalanTransformer.transform(Compiled
Code)
>  at org.apache.cocoon.processor.xslt.XSLTProcessor.process(Compiled Code)
>  at org.apache.cocoon.Engine.handle(Compiled Code)
>  at org.apache.cocoon.Cocoon.service(Compiled Code)
>  at javax.servlet.http.HttpServlet.service(Compiled Code)
>  at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
>  at org.apache.tomcat.core.ContextManager.service(Compiled Code)
>  at
>
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> (Compiled Code)
>  at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
>  at java.lang.Thread.run(Compiled Code)
>
> Thanks for any help.
> I am using cocoon 1.8 Xalan 1_2_D02
>
> Didier
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message