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
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
becky goodfordSubject: forcing a blank line
Author: becky goodford
Date: 08 Mar 2006 04:25 PM
my xml file contains Section 1 with varied number of questions.
then section 2 with varied number of questions..then section 3 etc.

you helped me earlier on this, and I have it working fine...but, now I would like to force a blank line after the last question in each section.

(your previous help involved supressing of printing the Section title every time..)


Unknownsat-customer.xsl
xsl file

Unknownsat-customer.xml
xml file

Unknowncustomer.pdf
out pdf file

Postnext
Minollo I.Subject: forcing a blank line
Author: Minollo I.
Date: 09 Mar 2006 09:36 AM
You can probably change your loop start to something like:

...
<xsl:for-each select="datasettablename">
<xsl:if test="preceding-sibling::datasettablename[1]/section_title != section_title">
<fo:table-row height="12pt"/>
</xsl:if>
...

Postnext
Minollo I.Subject: forcing a blank line
Author: Minollo I.
Date: 09 Mar 2006 09:49 AM
BTW, I've noticed two things that you may want to review:

- Your XSLT generates XSL-FO, which is an XML grammar; but you are setting your output method to "HTML"; I would recommend that you either remove your output method setting, or set it to "XML" instead

- Even if you are generating XSL-FO, you haven't set Stylus Studio to preview the result after a post-processing step that would convert XSL-FO into PDF. That would make testing much easier. You can instruct Stylus Studio to render the result as PDF selecting XSLT > Scenario Properties... and then choosing "Apache FOP" in the post-processing tab. Please not that post processing will not take place unless you change your output method to be undefined or XML

Hope this helps,
Minollo

Postnext
becky goodfordSubject: forcing a blank line
Author: becky goodford
Date: 09 Mar 2006 10:51 AM
good to know about the setting for xml.
we have been using another PDF generater, so each time I save the xsl fo code, I use the generator to preview results, as I could not get Stylus to work, but now that you mention the setting of xml instead of html, I will give that a try.
thanks again, btw this is the cheating code i used to eventually get it to work. it makes it look like a blank line...

<xsl:choose>
<xsl:when test="preceding-sibling::datasettablename[1]/section_title = section_title"></xsl:when>
<xsl:otherwise>
<fo:block color="white">one</fo:block>
<xsl:value-of select="section_title"/>
</xsl:otherwise>
</xsl:choose>

Posttop
Minollo I.Subject: forcing a blank line
Author: Minollo I.
Date: 09 Mar 2006 11:14 AM
For the record, you can configure your own XSL-FO processor in Stylus Studio to do post-processing; we have examples about how to configure RenderX, for example (http://www.stylusstudio.com/renderx/xep.html).

Minollo

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
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.