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
Marjatta RepoSubject: using XSL-FO to convert PDF
Author: Marjatta Repo
Date: 02 Apr 2008 01:15 AM
Hi,
we are using XSL-FO to covert our print in PDF-form. If we have in our appliaction HTML - commands like Bold (br), we can see on the pdf -prints.
Can we do something to that in XSL-FO or should get the application so that it did not bring those commands to XML, which is bases to our stylesheet information.

Will be happy, if I get whichever answer. No or yes. Thanks!

Marjatta

Postnext
(Deleted User) Subject: using XSL-FO to convert PDF
Author: (Deleted User)
Date: 02 Apr 2008 09:46 AM
Hi Marjatta,
could you explain what you need by using an example? The description is too vague for me to understand what you are trying to achieve.

Thanks,
Alberto

Postnext
Marjatta RepoSubject: using XSL-FO to convert PDF
Author: Marjatta Repo
Date: 03 Apr 2008 01:43 AM
Hi,
we use in an application HTML - commands like bold (br) according our customers wishes.
When the form will be printed out also commands are seen on the PDF-print.
An example:
XML: <value field_id="itemClassMaint" field_name="Tapahtumatyyppi" is_visible="true" type="C" itemClassId="00202" personId="39320"
value_desc="Ylityön korotusosa 50% </br>vuorokautinen (tunnit)"
field_desc="Yksilöi tapahtuman">00202</value>

XSL-FO: <xsl:value-of select="value[@field_id='itemClassMaint' and @subItemClassId='00202']/@value_desc"/>

PDF:Ylityön korotusosa 50%
</br>vuorokautinen (tunnit)
Can we do something in XSL or is it so that everything which is saved in XML and wanted to be printed will be seen on print.
Look like that only way is the leave HTML commands out of the part of apllication which will be wanted to be printed on the official form.

Regards Marjatta

Posttop
(Deleted User) Subject: using XSL-FO to convert PDF
Author: (Deleted User)
Date: 03 Apr 2008 12:22 PM
Hi Marjatta,
if I understood it right, you want to remove from the PDF output the control codes that are stored with the data; the only option that comes to my mind is to manually search for them (using substring-before() and substring-after() for each possible code, if you use XSLT 1.0; or by using a single replace() with a regular expression like "<[a-zA-Z/]*>" if you can use XSLT 2.0).

Hope this helps,
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.