This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Fop parser


 <xsl:template match="greeting">
 	<xsl:value-of select="greeting"/>
 </xsl:template>

should be

 <xsl:template match="greeting">
 	<xsl:value-of select="."/>
 </xsl:template>

> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of James Piva
> Sent: Monday, December 18, 2000 3:33 PM
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] Fop parser
> 
> 
> hi,
> 
> 	My name is James.
> 	I have been trying to parse a xml to pdf using Fop 0.11.0.
> 	I'm getting this error.
> 
> 	FOP 0.11.0
> 	using SAX parser com.jclark.xml.sax.Driver
> 	building formatting object tree
> 	setting up fonts
> 	formatting FOs into areas
> 	java.lang.NullPointerException****
> 
> 	May be it would be easy for you to point out
> 	my error.  I am still new to xml, but figure this should work.
> 
> 	Here is my xml:
> 
> <?xml version="1.0" encoding="iso-8859-1"?>
> <greeting>Hello, world!</greeting>
> 
> 
> 	Here is my xsl:
> 
> 
> <xsl:stylesheet version="1.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:template match="greeting">
> 	<xsl:value-of select="greeting"/>
> </xsl:template>
> </xsl:stylesheet>
> 
> and here is my command line:
> 
> D:\dump\xslParser\xmltoPDFParser>java -cp
> c:\javalib\fop_0_11_0.jar;c:\javalib\sax.jar;c:\javalib\xp.jar;c:\
> javalib\xt.jar co
> m.jtauber.fop.apps.XTCommandLine hello.xml hello.xsl hello.pdf
> 
> 
> 	any comments welcome, i can take it...
> 
> 	james
> 
> 
> 
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]