Hi,
Im not sure if im doing this right but when I create my pdf the values do not show where ive used xsl:value-of.
My xml is generated from php and im using apache fop
[HTML] <?xml version="1.0" encoding="ISO-8859-1" ?>
- <quote>
- <company>
<comp_name>Bi o Bubble</comp_name>
<contact />
- <address>
<add1>Emswort h Yacht Harbour</add1>
<add2>Thorney rd</add2>
<town>Emswort h</town>
<county>Hampshi re</county>
<pcode>PO10 8BP</pcode>
</address>
<tel>0044 1243 370 100</tel>
</company>
- <details>
<proj_id>j888 8</proj_id>
<proj_name>ST Ps for UAE</proj_name>
<form>FORM 4 type 2</form>
<access>Front Only</access>
<cable_entry>Bo ttom</cable_entry>
<ip>00</ip>
<fault>50Ka 1sec 800a</fault>
<proj_manager>M ark Cleary</proj_manager>
<deadline>10/10/08</deadline>
</details>
- <objects>
- <obj id="894">
<object_name>A1 </object_name>
<module_name>In coming 600x600</module_name>
<mod_desc>Incom er connection section 600x600</mod_desc>
<obj_desc />
<xpos>180</xpos>
<ypos>210</ypos>
<height>600</height>
<width>600</width>
<depth>600</depth>
</obj>
- <obj id="895">
<object_name>A2 </object_name>
<module_name>40 0A SINGLE MCCB 600X600</module_name>
<mod_desc>400 A SINGLE MCCB 600X600</mod_desc>
<obj_desc />
<xpos>180</xpos>
<ypos>150</ypos>
<height>600</height>
<width>600</width>
<depth>600</depth>
</obj>
- <obj id="896">
<object_name>B2 </object_name>
<module_name> 22 - 45KW CONV ASD 600X600</module_name>
<mod_desc>22 - 45KW CONV ASD 600X600</mod_desc>
<obj_desc />
<xpos>240</xpos>
<ypos>150</ypos>
<height>600</height>
<width>600</width>
<depth>600</depth>
</obj>
- <obj id="897">
<object_name>B1 </object_name>
<module_name> 22 - 45KW CONV ASD 600X600</module_name>
<mod_desc>22 - 45KW CONV ASD 600X600</mod_desc>
<obj_desc />
<xpos>240</xpos>
<ypos>90</ypos>
<height>600</height>
<width>600</width>
<depth>600</depth>
</obj>
- <obj id="898">
<object_name>ca ble1</object_name>
<module_name>Ca ble</module_name>
<mod_desc>Stand ard 400mm cable section</mod_desc>
<obj_desc>[object]</obj_desc>
<xpos>300</xpos>
<ypos>90</ypos>
<height>1800</height>
<width>400</width>
<depth>600</depth>
</obj>
- <obj id="899">
<object_name>A3 </object_name>
<module_name> 0 - 3KW CONV VSD 600X600</module_name>
<mod_desc>0 - 3KW CONV VSD 600X600</mod_desc>
<obj_desc />
<xpos>180</xpos>
<ypos>90</ypos>
<height>600</height>
<width>600</width>
<depth>600</depth>
</obj>
- <obj id="900">
<object_name>B3 </object_name>
<module_name> 0 - 5.5KW DOL 600x400</module_name>
<mod_desc>0 - 5.5KW DOL 600x400</mod_desc>
<obj_desc />
<xpos>240</xpos>
<ypos>210</ypos>
<height>400</height>
<width>600</width>
<depth>600</depth>
</obj>
- <obj id="901">
<object_name>C1 </object_name>
<module_name>90 KW VSD 600X1800</module_name>
<mod_desc>90K W VSD 600X1800</mod_desc>
<obj_desc />
<xpos>340</xpos>
<ypos>90</ypos>
<height>1800</height>
<width>600</width>
<depth>600</depth>
</obj>
- <obj id="902">
<object_name>D1 </object_name>
<module_name> 3 - 7.5KW CONV VSD 600X600</module_name>
<mod_desc>3 - 7.5KW CONV VSD 600X600</mod_desc>
<obj_desc />
<xpos>400</xpos>
<ypos>90</ypos>
<height>600</height>
<width>600</width>
<depth>600</depth>
</obj>
- <obj id="903">
<object_name>D2 </object_name>
<module_name>14 WAY DIST BOARD 600X600</module_name>
<mod_desc>ACTUA TED VALVE 14WAY DIST BOARD 600X600</mod_desc>
<obj_desc />
<xpos>400</xpos>
<ypos>150</ypos>
<height>600</height>
<width>600</width>
<depth>600</depth>
</obj>
- <obj id="904">
<object_name>D3 </object_name>
<module_name>Sp are 600x400</module_name>
<mod_desc>Spa re section 600x400</mod_desc>
<obj_desc />
<xpos>400</xpos>
<ypos>210</ypos>
<height>400</height>
<width>600</width>
<depth>600</depth>
</obj>
- <obj id="904">
<object_name>D3 </object_name>
<module_name>SP ARE 600x400</module_name>
<mod_desc>Spa re 600x400</mod_desc>
<obj_desc />
<xpos>400</xpos>
<ypos>210</ypos>
<height>400</height>
<width>600</width>
<depth>600</depth>
</obj>
- <obj id="905">
<object_name>ca ble2</object_name>
<module_name>Ca ble</module_name>
<mod_desc>Stand ard 400mm cable section</mod_desc>
<obj_desc>[object]</obj_desc>
<xpos>460</xpos>
<ypos>90</ypos>
<height>1800</height>
<width>400</width>
<depth>600</depth>
</obj>
</objects>
</quote>[/HTML]
Heres my xsl
[HTML]<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:styleshe et version="1.0"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master master-name="A4"
page-height="29.7cm" page-width="21.0cm" margin="2cm">
<fo:region-body/>
</fo:simple-page-master>
<fo:simple-page-master master-name="A3"
page-height="29.7cm" page-width="21.0cm" margin="5cm">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="A4">
<fo:flow flow-name="xsl-region-body">
<fo:block font-family="Helveti ca" font-size="18pt" text-align="end">
<html>
<body>
<xsl:value-of select="quote/company"/>
</body>
</html>
</fo:block>
<fo:block font-family="Helveti ca" font-size="12pt" text-align="end" space-after="36pt">
aa:<xsl:value-of select="quote/company/company_name"/>
</fo:block>
<fo:block text-align="end">
<fo:external-graphic src="file:tes_l ogo.gif" width="50%" height="50%"/>
</fo:block>
<fo:block text-align="end">
A Catcode Production
</fo:block>
<!-- Nextpage: Table of contents-->
<fo:block break-before="page" space-before="2in" space-after="2in">
Index Page
</fo:block>
<!-- Nextpage: Quote-->
<fo:block break-before="page" space-before="2in" space-after="2in">
Quote
</fo:block>
<!-- Nextpage: Drawings of each panel-->
<fo:block break-before="page" space-before="2in" space-after="2in">
Drawings
</fo:block>
<!-- Nextpage: Company profile-->
<fo:block break-before="page" space-before="2in" space-after="2in">
Company Profile
</fo:block>
<!-- Nextpage: Terms and conditions of quote-->
<fo:block break-before="page" space-before="2in" space-after="2in">
Terms and Conditions
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>[/HTML]
Im not sure if im doing this right but when I create my pdf the values do not show where ive used xsl:value-of.
My xml is generated from php and im using apache fop
[HTML] <?xml version="1.0" encoding="ISO-8859-1" ?>
- <quote>
- <company>
<comp_name>Bi o Bubble</comp_name>
<contact />
- <address>
<add1>Emswort h Yacht Harbour</add1>
<add2>Thorney rd</add2>
<town>Emswort h</town>
<county>Hampshi re</county>
<pcode>PO10 8BP</pcode>
</address>
<tel>0044 1243 370 100</tel>
</company>
- <details>
<proj_id>j888 8</proj_id>
<proj_name>ST Ps for UAE</proj_name>
<form>FORM 4 type 2</form>
<access>Front Only</access>
<cable_entry>Bo ttom</cable_entry>
<ip>00</ip>
<fault>50Ka 1sec 800a</fault>
<proj_manager>M ark Cleary</proj_manager>
<deadline>10/10/08</deadline>
</details>
- <objects>
- <obj id="894">
<object_name>A1 </object_name>
<module_name>In coming 600x600</module_name>
<mod_desc>Incom er connection section 600x600</mod_desc>
<obj_desc />
<xpos>180</xpos>
<ypos>210</ypos>
<height>600</height>
<width>600</width>
<depth>600</depth>
</obj>
- <obj id="895">
<object_name>A2 </object_name>
<module_name>40 0A SINGLE MCCB 600X600</module_name>
<mod_desc>400 A SINGLE MCCB 600X600</mod_desc>
<obj_desc />
<xpos>180</xpos>
<ypos>150</ypos>
<height>600</height>
<width>600</width>
<depth>600</depth>
</obj>
- <obj id="896">
<object_name>B2 </object_name>
<module_name> 22 - 45KW CONV ASD 600X600</module_name>
<mod_desc>22 - 45KW CONV ASD 600X600</mod_desc>
<obj_desc />
<xpos>240</xpos>
<ypos>150</ypos>
<height>600</height>
<width>600</width>
<depth>600</depth>
</obj>
- <obj id="897">
<object_name>B1 </object_name>
<module_name> 22 - 45KW CONV ASD 600X600</module_name>
<mod_desc>22 - 45KW CONV ASD 600X600</mod_desc>
<obj_desc />
<xpos>240</xpos>
<ypos>90</ypos>
<height>600</height>
<width>600</width>
<depth>600</depth>
</obj>
- <obj id="898">
<object_name>ca ble1</object_name>
<module_name>Ca ble</module_name>
<mod_desc>Stand ard 400mm cable section</mod_desc>
<obj_desc>[object]</obj_desc>
<xpos>300</xpos>
<ypos>90</ypos>
<height>1800</height>
<width>400</width>
<depth>600</depth>
</obj>
- <obj id="899">
<object_name>A3 </object_name>
<module_name> 0 - 3KW CONV VSD 600X600</module_name>
<mod_desc>0 - 3KW CONV VSD 600X600</mod_desc>
<obj_desc />
<xpos>180</xpos>
<ypos>90</ypos>
<height>600</height>
<width>600</width>
<depth>600</depth>
</obj>
- <obj id="900">
<object_name>B3 </object_name>
<module_name> 0 - 5.5KW DOL 600x400</module_name>
<mod_desc>0 - 5.5KW DOL 600x400</mod_desc>
<obj_desc />
<xpos>240</xpos>
<ypos>210</ypos>
<height>400</height>
<width>600</width>
<depth>600</depth>
</obj>
- <obj id="901">
<object_name>C1 </object_name>
<module_name>90 KW VSD 600X1800</module_name>
<mod_desc>90K W VSD 600X1800</mod_desc>
<obj_desc />
<xpos>340</xpos>
<ypos>90</ypos>
<height>1800</height>
<width>600</width>
<depth>600</depth>
</obj>
- <obj id="902">
<object_name>D1 </object_name>
<module_name> 3 - 7.5KW CONV VSD 600X600</module_name>
<mod_desc>3 - 7.5KW CONV VSD 600X600</mod_desc>
<obj_desc />
<xpos>400</xpos>
<ypos>90</ypos>
<height>600</height>
<width>600</width>
<depth>600</depth>
</obj>
- <obj id="903">
<object_name>D2 </object_name>
<module_name>14 WAY DIST BOARD 600X600</module_name>
<mod_desc>ACTUA TED VALVE 14WAY DIST BOARD 600X600</mod_desc>
<obj_desc />
<xpos>400</xpos>
<ypos>150</ypos>
<height>600</height>
<width>600</width>
<depth>600</depth>
</obj>
- <obj id="904">
<object_name>D3 </object_name>
<module_name>Sp are 600x400</module_name>
<mod_desc>Spa re section 600x400</mod_desc>
<obj_desc />
<xpos>400</xpos>
<ypos>210</ypos>
<height>400</height>
<width>600</width>
<depth>600</depth>
</obj>
- <obj id="904">
<object_name>D3 </object_name>
<module_name>SP ARE 600x400</module_name>
<mod_desc>Spa re 600x400</mod_desc>
<obj_desc />
<xpos>400</xpos>
<ypos>210</ypos>
<height>400</height>
<width>600</width>
<depth>600</depth>
</obj>
- <obj id="905">
<object_name>ca ble2</object_name>
<module_name>Ca ble</module_name>
<mod_desc>Stand ard 400mm cable section</mod_desc>
<obj_desc>[object]</obj_desc>
<xpos>460</xpos>
<ypos>90</ypos>
<height>1800</height>
<width>400</width>
<depth>600</depth>
</obj>
</objects>
</quote>[/HTML]
Heres my xsl
[HTML]<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:styleshe et version="1.0"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master master-name="A4"
page-height="29.7cm" page-width="21.0cm" margin="2cm">
<fo:region-body/>
</fo:simple-page-master>
<fo:simple-page-master master-name="A3"
page-height="29.7cm" page-width="21.0cm" margin="5cm">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="A4">
<fo:flow flow-name="xsl-region-body">
<fo:block font-family="Helveti ca" font-size="18pt" text-align="end">
<html>
<body>
<xsl:value-of select="quote/company"/>
</body>
</html>
</fo:block>
<fo:block font-family="Helveti ca" font-size="12pt" text-align="end" space-after="36pt">
aa:<xsl:value-of select="quote/company/company_name"/>
</fo:block>
<fo:block text-align="end">
<fo:external-graphic src="file:tes_l ogo.gif" width="50%" height="50%"/>
</fo:block>
<fo:block text-align="end">
A Catcode Production
</fo:block>
<!-- Nextpage: Table of contents-->
<fo:block break-before="page" space-before="2in" space-after="2in">
Index Page
</fo:block>
<!-- Nextpage: Quote-->
<fo:block break-before="page" space-before="2in" space-after="2in">
Quote
</fo:block>
<!-- Nextpage: Drawings of each panel-->
<fo:block break-before="page" space-before="2in" space-after="2in">
Drawings
</fo:block>
<!-- Nextpage: Company profile-->
<fo:block break-before="page" space-before="2in" space-after="2in">
Company Profile
</fo:block>
<!-- Nextpage: Terms and conditions of quote-->
<fo:block break-before="page" space-before="2in" space-after="2in">
Terms and Conditions
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>[/HTML]
Comment