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
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

   
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.