Click here to Skip to main content
15,917,971 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionHow to display repiting information Pin
somniatorum28-Jul-06 5:22
somniatorum28-Jul-06 5:22 
AnswerRe: How to display repiting information Pin
Dustin Metzgar28-Jul-06 5:44
Dustin Metzgar28-Jul-06 5:44 
GeneralRe: How to display repiting information Pin
somniatorum28-Jul-06 6:21
somniatorum28-Jul-06 6:21 
GeneralRe: How to display repiting information Pin
Dustin Metzgar28-Jul-06 6:30
Dustin Metzgar28-Jul-06 6:30 
QuestionBI dimensional table in XSL - Suggestions Pin
inarobis28-Jul-06 4:31
inarobis28-Jul-06 4:31 
AnswerRe: BI dimensional table in XSL - Suggestions Pin
inarobis31-Jul-06 0:03
inarobis31-Jul-06 0:03 
Questionconnect to web service using VC++ Pin
Ajith Sivakumar28-Jul-06 2:27
Ajith Sivakumar28-Jul-06 2:27 
QuestionPage sequences in fop continue Pin
Support12327-Jul-06 21:58
Support12327-Jul-06 21:58 
Hi All,

I want to insert a page-sequence for every 5 table rows.

Here is what i have thus far...

<xsl:variable name="STOP" select="5"/>
<xsl:for-each select="TablePop/TableInfo[position() mod $STOP = 1]">
<fo:page-sequence master-reference="simple" initial-page-number="auto">
<fo:flow flow-name="xsl-region-body">
<fo:table table-layout="fixed" width="750pt">
<fo:table-column column-width="200pt"/>
<fo:table-column column-width="275pt"/>
<fo:table-column column-width="275pt"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block text-align="left" font-size="10pt" font-family="Courier">
Title1
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="left" font-size="10pt" font-family="Courier">
Title2
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="left" font-size="10pt" font-family="Courier">
Title3
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<xsl:for-each select=".|following-sibling::TablePop/TableInfo[position() &lt; $STOP]">
<xsl:apply-templates select="."/>
</xsl:for-each>
</fo:flow>
</fo:page-sequence>
</xsl:for-each>

here is the later bit...

<xsl:template match="TablePop">
<fo:table table-layout="fixed" width="750pt">
<fo:table-column column-width="200pt"/>
<fo:table-column column-width="275pt"/>
<fo:table-column column-width="275pt"/>
<fo:table-body>
<xsl:for-each select="TableInfo">
<fo:table-row>
<fo:table-cell font-size="7pt" border="1" border-color="black" border-style="solid" padding="2pt">
<fo:block>
<xsl:value-of select="ClientTitle"/>
</fo:block>
</fo:table-cell>
<fo:table-cell font-size="7pt" border="1" border-color="black" border-style="solid" padding="2pt">
<fo:block>
<xsl:value-of select="ClientName"/>
</fo:block>
</fo:table-cell>
<fo:table-cell font-size="7pt" border="1" border-color="black" border-style="solid" padding="2pt">
<fo:block>
<xsl:value-of select="ClientSurname"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:for-each>
</fo:table-body>
</fo:table>
</xsl:template>

I can display the titles: Title1 Title2 Title3
each one of these titles are on a seperate page, That is Fine. Now i can't get the data to display underneath the Title1 Title2 Title3.
example
Title1--Title2--Title3
mr John White
mrs Sam Blue
prof Ed Black

He who laughs last...
QuestionRe: Page sequences in fop continue XML Pin
Support12327-Jul-06 22:00
Support12327-Jul-06 22:00 
QuestionRe: Think i found the problem, but don't know how to fix it Pin
Support12328-Jul-06 1:43
Support12328-Jul-06 1:43 
AnswerThank you anyway Pin
Support12328-Jul-06 2:52
Support12328-Jul-06 2:52 
QuestionFO Question Pin
Are Jay27-Jul-06 9:57
Are Jay27-Jul-06 9:57 
AnswerRe: FO Question Pin
Dustin Metzgar27-Jul-06 10:12
Dustin Metzgar27-Jul-06 10:12 
GeneralRe: FO Question Pin
Are Jay27-Jul-06 11:03
Are Jay27-Jul-06 11:03 
GeneralRe: FO Question Pin
Support12327-Jul-06 21:45
Support12327-Jul-06 21:45 
GeneralRe: FO Question Pin
Are Jay28-Jul-06 4:46
Are Jay28-Jul-06 4:46 
QuestionParsing XML Server Response Pin
FrancisMH26-Jul-06 20:35
FrancisMH26-Jul-06 20:35 
AnswerRe: Parsing XML Server Response Pin
FrancisMH31-Jul-06 14:16
FrancisMH31-Jul-06 14:16 
QuestionXSD code generation problems! Pin
richiemac26-Jul-06 2:09
richiemac26-Jul-06 2:09 
AnswerRe: XSD code generation problems! Pin
richiemac26-Jul-06 2:12
richiemac26-Jul-06 2:12 
QuestionHow to get back color of table-cell from XML ??? [modified] Pin
Rizwan Bashir26-Jul-06 0:58
Rizwan Bashir26-Jul-06 0:58 
QuestionTrasnsform XML from string Pin
offengenden25-Jul-06 6:20
offengenden25-Jul-06 6:20 
GeneralRe: Trasnsform XML from string Pin
Dustin Metzgar25-Jul-06 6:34
Dustin Metzgar25-Jul-06 6:34 
GeneralRe: Trasnsform XML from string Pin
offengenden25-Jul-06 6:36
offengenden25-Jul-06 6:36 
GeneralRe: Trasnsform XML from string Pin
Dustin Metzgar25-Jul-06 6:58
Dustin Metzgar25-Jul-06 6:58 

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.