[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSL-FO and unparsed-text()

Subject: Re: XSL-FO and unparsed-text()
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 13 Dec 2007 13:30:36 GMT
Re:  XSL-FO and unparsed-text()
> Is there a way to use unparsed-text() in XSL-FO? 

Just as the HTML renderer takes as input a file containing  HTML and
javascript, and XSL-FO renderer takes as input containing XSL:FO
elements. Neither system knows or cares how the inpout was constructed.

unparsed-text is an Xpath2 function which you can use in an XSLt2
stylesheet to access a text file, you can use the contents of that file
in any way you want to generate fo:xxx elements.

The javascript targetting the DOM  in a web browser most likely wouldn't
work in PDF, but PDF does have some support for javascript and other
interactivity, and it's possible that your FO to PDF stystem may let you
access that, but you'd need to produce scripting that works in pdf,
which is a black art off topic for this list.

You need to work backwards from the result you want.
If you want a pdf with certain interactive elements, first work out
what pdf constructs you need, then see if your FO rendering system has
any extensions to make that available, then once you know what XMl needs
to be in the input to the FO system, you can look how to generate that
input with XSLT. At this stage you may want to use unparsed-text().

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.