XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
- XSLT Help and Discussion (7625)
-> + Use of before and after string (3) Sticky Topic
-> - How do I substitute element ty... (1)
-> + How does one add working days ... (4)
-> - Help, I have existing XLT and... (1)
-> + Need help on XSLT issue - (2)
-> + EDI to XML Conversion (7)
-> - XML To JSON Conversion using X... (1)
-> + Formatting Paragraphs to same ... (2)
-> - Grouping of records (1)
-> + Problems with xsd 1.1 (4)
-> + XML to HL7 mapping (3)
-> + XSLT 3 and Iterate (2)
-> + XSL-FO to PDF preview (3)
-> + java.lang.RuntimeException: Er... (2)
-> + Create Acroforms with Stylus X... (2)
-> + How to change XSLT parameter s... (3)
-> + how to change format of the da... (2)
-> + Search "Next 8 Results " doesn... (2)
-> - Support for Git (1)
-> + newbee (8)
-- [1-20] [21-40] [41-60] Next
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
D LSubject: XSL:FO Marker Question
Author: D L
Date: 30 Jun 2008 01:33 PM
Originally Posted: 30 Jun 2008 01:24 PM
Hello,

I am trying to create a xsl:marker that contains a fo:table however it does not display in my header. If I remove the table the text does show. However I want to show each folder as in a seperate row. Below is the xsl. My question is can you show a table in a fo:marker? If so, what am I missing? If not, what can I do to show each folder like this:

Folder1
Folder2
Folder3
...

--static header
<fo:static-content flow-name="xsl-region-before">
<fo:block font-size="8pt" font-family="Arial">
<fo:table width="45pc">
<xsl:call-template name="sectionHeader"/>
</fo:table>
</fo:block>
<fo:block font-size="8pt" font-family="Arial">
<fo:retrieve-marker retrieve-class-name="sectionFolders"/>
</fo:block>
<fo:block xsl:use-attribute-sets="leaderblock">
<fo:leader padding="0em" leader-length="100%" leader-pattern="rule" rule-style="solid" rule-thickness="0.5pt" color="black"/>
</fo:block>
</fo:static-content>

--template
<xsl:template name="createFolders">
<fo:block>
<fo:marker marker-class-name="sectionFolders" >
<fo:block>
<fo:table>
<xsl:for-each select="//chapter/section/folders/folder">
<fo:table-row>
<fo:table-cell>
<xsl:value-of select="."/>
</fo:table-cell>
</fo:table-row>
</xsl:for-each>
</fo:table>
</fo:block>
</fo:marker>
</fo:block>
</xsl:template>

Thanks

Posttop
(Deleted User) Subject: XSL:FO Marker Question
Author: (Deleted User)
Date: 08 Jul 2008 06:23 AM
Hi,
this is a XSL-FO-specific question that goes beyond what this forum can provide. If you think your XSL-FO is correct according to spec, also check with the producer of the XSL_FO engine you are using to verify if it's a known bug.

Alberto

   
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.