cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tanner, Roger" <Roger.Tan...@ArvinMeritor.com>
Subject [HELP]Unable to get transformer handler for planet2html.xsl
Date Fri, 16 May 2003 11:36:21 GMT
Hi,

I just started to play around with Cocoon and wanted to test an example from
a book where some planet data get loaded into a table.
When using the style sheet below I am getting the following exception

Description:org.apache.cocoon.ProcessingException: Unable to get transformer
handler for planet2html.xsl:
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in creating
Transform Handler

Original Exception: org.apache.excalibur.xml.xslt.XSLTProcessorException:
Exception in creating Transform Handler

	at
org.apache.excalibur.xml.xslt.XSLTProcessorImpl.getTransformerHandlerAndVali
dity(XSLTProcessorImpl.java:380)

	at
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:
302)

	at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeli
ne(AbstractProcessingPipeline.java:391)


When modifying the stylesheet and removing the last section where I the
match for PLANET is described <xsl:template match="PLANET">
everything works fine.

Could you tell me what I made wrong ??

I am using 
- Tomcat 5 (jakarta-tomcat-5-bin-20030514)
- Cocoon 2.1 M2 (cocoon-2.1_20030515110652.tar.gz)
- Java 1.4.2-beta
- Windows 2000

Thank you

Roger

------  XSL Stylesheet------

xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:template match="PLANETS">
	    <html>
			   <head>
				    <title>The Planets Table</title>
				 </head>
				 <body>
				    <H1>The Planets Table</H1>
						<table BORDER="2">
						   <TR>
							    <TD>Name</TD>
	
<TD>Mass</TD>
	
<TD>Radius</TD>
	
<TD>Day</TD>
							 </TR>
	
<xsl:apply-templates/>
						</table>
				 </body>
			</html>
		</xsl:template>	
		
		<xsl:template match="PLANET">
		   <TR>
			    <TD><xsl:value-of select="NAME"/></TD>
			    <TD><xsl:apply-template select="MASS"/></TD>
					<TD><xsl:apply-template
select="RADIUS"/></TD>
					<TD><xsl:apply-template
select="DAY"/></TD>
			 </TR>
		</xsl:template>
		
</xsl:stylesheet>


-----------XML data -------------

<?xml version="1.0"?> 
<PLANETS> 
    <PLANET> 
        <NAME>Mercury</NAME> 
        <MASS UNITS="(Earth = 1)">.0553</MASS> 
        <DAY UNITS="days">58.65</DAY> 
        <RADIUS UNITS="miles">1516</RADIUS> 
        <DENSITY UNITS="(Earth = 1)">.983</DENSITY> 
        <DISTANCE UNITS="million miles">43.4</DISTANCE><!--At perihelion-->

    </PLANET>
</PLANETS>


---------------------------------------------------------------------
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