|
Subject: [xsl] Dictionary Headers From: tsterlin@xxxxxxxxxxxxxxxxx Date: Sun, 5 Dec 2004 20:09:16 -0700 |
Hello everyone,
I thought I'd figured out how to implement dictionary headers, but my
strategy does not seem to be working. Here's what I've got:
The XML
-------
<NP>
<NPL>
<NPLROW>Some Stuff</NPLROW>
</NPL>
<NPL>
<NPLROW>Some Stuff</NPLROW>
</NPL
<NPL>
<NPLROW>Some Stuff</NPLROW>
</NPL
<NPL>
<NPLROW>Some Stuff</NPLROW>
</NPL
.
.
.(etc)
</NP>
My stylesheet:
--------------
<fo:page-sequence master-reference="stockIndex">
<fo:static-content flow-name="regionAfterColumnsRight">
<fo:retrieve-marker retrieve-class-name="dictionary"
retrieve-boundary="page"
retrieve-position="first-starting-within-page"/>
<xsl:text> THRU </xsl:text>
<fo:retrieve-marker retrieve-class-name="dictionary"
retrieve-boundary="page"
retrieve-position="last-ending-within-page"/>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:table>
<xsl:apply-templates/>
</fo:table>
</fo:flow>
</fo:page-sequence>
<xsl:template match select="NPLROW">
<fo:table-body>
<fo:marker marker-class-name="dictionary">
<xsl:apply-templates/>
</fo:marker>
<fo:table-row>
<fo:table-cell>
<xsl:apply-templates/>
</fo:table-cell>
</fo:table-row>
</fo:table>
</xsl:template>
The resulting fo document:
--------------------------
<fo:page-sequence master-reference="stockIndex">
<fo:static-content flow-name="regionAfterColumnsRight">
<fo:retrieve-marker retrieve-class-name="dictionary"
retrieve-boundary="page"
retrieve-position="first-starting-within-page"/>
THRU
<fo:retrieve-marker retrieve-class-name="dictionary"
retrieve-boundary="page"
retrieve-position="last-ending-within-page"/>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:table>
<fo:table-body>
<fo:marker marker-class-name="dictionary">Some Stuff</fo:marker>
<fo:table-row>
<fo:table-cell>
<fo:block>Some Stuff</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
<fo:table-body>
<fo:marker marker-class-name="dictionary">Some Stuff</fo:marker>
<fo:table-row>
<fo:table-cell>
<fo:block>Some Stuff</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
<fo:table-body>
<fo:marker marker-class-name="dictionary">Some Stuff</fo:marker>
<fo:table-row>
<fo:table-cell>
<fo:block>Some Stuff</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
.
.
.
.(etc)
</fo:table>
</fo:flow>
</fo:page-sequence>
To me everything looks great, however in the resulting pdf document only the
"THRU" appears in the footer. There are no values for the dictionary
retrieve-markers. Any ideas why??
Thanks,
-Tracy :-)
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] sum based on grouping by date, dmitrik | Thread | Re: [xsl] Dictionary Headers, J.Pietschmann |
| Re: [xsl] Dumping a variable, Aidan Lister | Date | Re: [xsl] Dumping a variable, Marian Olteanu |
| Month |