Click here to Skip to main content
15,915,975 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Fop problems Pin
Support12310-Jul-06 5:42
Support12310-Jul-06 5:42 
GeneralRe: Fop problems Pin
Support12310-Jul-06 5:54
Support12310-Jul-06 5:54 
GeneralRe: Fop problems Pin
Dustin Metzgar10-Jul-06 6:05
Dustin Metzgar10-Jul-06 6:05 
GeneralRe: Fop problems Pin
Support12311-Jul-06 1:35
Support12311-Jul-06 1:35 
GeneralRe: Fop problems Pin
Dustin Metzgar11-Jul-06 2:06
Dustin Metzgar11-Jul-06 2:06 
GeneralRe: Fop problems Pin
Support12311-Jul-06 2:24
Support12311-Jul-06 2:24 
GeneralRe: Fop problems Pin
Dustin Metzgar11-Jul-06 2:40
Dustin Metzgar11-Jul-06 2:40 
GeneralRe: Fop problems Pin
Support12311-Jul-06 2:54
Support12311-Jul-06 2:54 
ok thank you but before you do i think i found something. Now i can display the "title" section in the pdf document i created...

instead of using <xsl:template match="/"> in the beginning, i'm using <xsl:temlate match="ClientLookUp">

and then i'm apply that template too.

Like this...

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="ClientLookUp">

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="simple"
page-height="29.7cm"
page-width="21cm"
margin-top="1cm"
margin-bottom="2cm"
margin-left="1.5cm"
margin-right="1.5cm">
<fo:region-body margin-top="2cm"/>
<fo:region-after extent="1.5cm"/>
<fo:region-before extent="1.5cm"/>
</fo:simple-page-master>
</fo:layout-master-set>

<fo:page-sequence master-reference="simple">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<xsl:apply-templates select="ClientLookUp"/>
<xsl:apply-templates select="Title"/>
<xsl:apply-templates select="TableEntries"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

</xsl:template>

<xsl:template match="Title">
<fo:block font-size="18pt"
font-family="sans-serif"
line-height="20pt"
space-after.optimum="1pt"
background-color="blue"
color="white"
text-align="center"
padding-top="3pt">
<xsl:value-of select="Heading"/>
</fo:block>
<fo:block font-size="16pt"
font-family="sans-serif"
line-height="18pt"
space-after.optimum="1pt"
background-color="blue"
color="white"
text-align="center"
padding-top="3pt">
<xsl:value-of select="DateCreated"/>
</fo:block>
</xsl:template>

<xsl:template match="TableEntries">
<fo:block width="510pt">
<fo:table table-layout="fixed" width="510pt">
<xsl:if test="TableInfo/ClientName">
<fo:table-column column-width="50pt" font-size="7pt" border="1" border-color="black" border-style="solid" padding="2pt"/>
<fo:table-column column-width="50pt" font-size="7pt" border="1" border-color="black" border-style="solid" padding="2pt"/>
</xsl:if>
<fo:table-body>
<fo:table-row>
<xsl:for-each select="TableInfo">
<xsl:if test="ClientName">
<fo:table-cell>
<fo:block>
Client Name
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<xsl:value-of select="ClientName"/>
</fo:block>
</fo:table-cell>
</xsl:if>
</xsl:for-each>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</xsl:template>

</xsl:stylesheet>

He who laughs last...
GeneralRe: Fop problems Pin
Dustin Metzgar11-Jul-06 3:26
Dustin Metzgar11-Jul-06 3:26 
GeneralRe: Fop problems Pin
Support12311-Jul-06 3:37
Support12311-Jul-06 3:37 
GeneralRe: Fop problems Pin
Support12311-Jul-06 5:47
Support12311-Jul-06 5:47 
GeneralRe: Fop problems Pin
Dustin Metzgar11-Jul-06 6:28
Dustin Metzgar11-Jul-06 6:28 
GeneralRe: Fop problems Pin
Support12311-Jul-06 6:38
Support12311-Jul-06 6:38 
GeneralRe: Fop problems Pin
Support12311-Jul-06 22:11
Support12311-Jul-06 22:11 
GeneralRe: Fop problems Pin
Dustin Metzgar12-Jul-06 3:33
Dustin Metzgar12-Jul-06 3:33 
GeneralRe: Fop problems [modified] Pin
Support12312-Jul-06 6:18
Support12312-Jul-06 6:18 
GeneralRe: Fop problems Pin
Dustin Metzgar12-Jul-06 6:49
Dustin Metzgar12-Jul-06 6:49 
GeneralRe: Fop problems Pin
Support12312-Jul-06 20:07
Support12312-Jul-06 20:07 
GeneralRe: Fop problems Pin
Support12318-Jul-06 6:01
Support12318-Jul-06 6:01 
GeneralRe: Fop problems Pin
Dustin Metzgar18-Jul-06 11:47
Dustin Metzgar18-Jul-06 11:47 
GeneralRe: Fop problems Pin
Support12311-Jul-06 5:49
Support12311-Jul-06 5:49 
QuestionCrystal report exported xml Pin
Naveed Kamboh10-Jul-06 3:06
Naveed Kamboh10-Jul-06 3:06 
QuestionPopulation of .NET property grid [modified] Pin
tom groezer9-Jul-06 20:17
tom groezer9-Jul-06 20:17 
QuestionCreating XPath from given node Pin
mhadamji7-Jul-06 1:48
mhadamji7-Jul-06 1:48 
AnswerRe: Creating XPath from given node Pin
Dustin Metzgar7-Jul-06 3:37
Dustin Metzgar7-Jul-06 3:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.