Re: [xsl] XSL-FO and unparsed-text()

Subject: Re: [xsl] XSL-FO and unparsed-text()
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 13 Dec 2007 13:30:36 GMT
> 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().


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