new user would like some help

Hi all,

Im trying to take an xml file, an xsl file and try to produce a pdf. Im not
having much luck.
Ive been working on this for a while now and am getting quite frustrated
because I know this must be easy - I just cant make it work.. (Im also
approaching brain overload from having installed SAX, Cocoon, jdk, fop,
tomcat etc etc in the last day or so)
Ive found numerous examples on how to do some quite funky things re
formatting, but I have yet to find a simple example of bringing in the data
from the xml file. If I can find the correct syntax I think I can sort the
rest out myself.

my xml file

<?xml version="1.0" standalone="no"?>
<!DOCTYPE RecordDetail>
<COMPANY>
<RecordDetail>
   <Custno>325626</Custno>
   <AcctName>Chucky</AcctName>
</RecordDetail>
<RecordDetail>
   <Custno>1423464</Custno>
   <AcctName>JimBob</AcctName>
</RecordDetail>
</COMPANY>

my xsl

?xml version="1.0" encoding="iso-8859-1"?> 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 xmlns:fo="http://wwww.w3.org/1999/XSL/Format" version="1.0">
<xsl:output method="xml" version="1.0" indent="yes" encoding="ISO-8859-1"/>

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> 
<fo:layout-master-set> 
	<fo:simple-page-master master-name="my-page"> 
       <fo:region-body margin="1in"/> 
     </fo:simple-page-master> 
</fo:layout-master-set> 

<fo:page-sequence master-name="my-page">  
<fo:flow flow-name="xsl-region-body">  

<fo:block font-weight="bold" text-align="center"> 
     My title goes here
</fo:block> 

<xsl:template match="AcctName">
    <fo:block font-size="14pt" font-family="sans-serif"
        font-weight="bold" color="green"
        space-before="6pt" space-after="6pt">
    <xsl:apply-templates/>
    </fo:block>
</xsl:template>


</fo:flow> 
</fo:page-sequence> 
</fo:root> 


the following line gives me an error (ie error null)
<xsl:template match="AcctName">

running "fop  -xsl simple.xsl -xml input.xml -pdf output.pdf"
Ive managed to create a pdf using a .fo file containing the content I want -
but I need to bring it in via the xml doc.

help please?


Arran Price
e-Business and Open Systems Architect
Datamail
1Victoria St, Petone, Wellington
PO Box 31 249, Lower Hutt
Phone: +64-4-568 8200
Fax: +64-4-568 9600
www.datamail.co.nz

The information contained in this mail message is confidential and may also
be legally privileged. If you are not the intended recipient, please note
that any use, dissemination, further distribution, or reproduction of this
message in any form what so ever, is strictly prohibited.  If the mail is in
error, please notify me by return E-mail, delete your copy of the message,
and accept my apologies for any inconvenience caused.

Received on Wednesday, 25 July 2001 18:45:41 UTC