472,331 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,331 software developers and data experts.

XML FO and PDF's?

Hi there everyone,

Am I right in thinking that you have to use XML:FO in order to make PDF
files out of xml files? If this is the case then can someone explain why you
have to use this other technology instead of just using XSL.

For making HTML pages, I just use XSL, after all, it has been touted as the
solution to all our presentation woes. But if this is the case, why then
does pdf require this other technology, and what exactly does it do?

I havent been able to get a useful answer to this simple question yet.

I'm really hoping someone can help

Many thanks
Kind Regards

Simon
Jul 20 '05 #1
8 11006
Simon Harvey wrote:
Am I right in thinking that you have to use XML:FO in order to make PDF
files out of xml files? If this is the case then can someone explain why you
have to use this other technology instead of just using XSL.

For making HTML pages, I just use XSL, after all, it has been touted as the
solution to all our presentation woes. But if this is the case, why then
does pdf require this other technology, and what exactly does it do?

Yes, pdf is a horse of another color. It's not SGML-based format (like XML and
HTML).

--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

Jul 20 '05 #2
Hi Oleg,

Could you or anyone else elaborate on that a bit more. I thought that xsl
was the technology needed to do conversions. Why can it do html but not pdf.
How does FO relate to xsl?

Thanks

Simon
Jul 20 '05 #3
Simon Harvey wrote:
Could you or anyone else elaborate on that a bit more. I thought that xsl
was the technology needed to do conversions. Why can it do html but not pdf.
How does FO relate to xsl?


First of all let's make a difference between XSL and XSLT. As per W3C
recommendations, XSL = XSL Transformations (XSLT) + XSL-FO vocabulary.
XSLT is XML transformation language, with predefined XML, HTML and text output
formats. HTML case is simple - due to ubiquitous web browsers it's just simple
XML to HTML transformation, XML -> transformation -> HTML.
But because pdf is binary non-markup-based data format it's unfeasible to
generate pdf with XSLT (may be only simplest pdf documents). That's by design,
recall XSLT is *XML* transformation language.
So, they have created XSL-FO (another descendant of DSSSL, which was (and it
is) actually XPath+XSLT+XSL-FO all in one). The idea of XSL is to allow to
produce high-quality document presentation (usually printed one) by expressing
presentation semantics in XSL-FO and then formatting XSL-FO to actual
device-specific presentation, see [1]. So there is one more player in this
scenario - XSL-FO formatter, which formats (and sometimes renders) XSL-FO.
Usual scenario is XML -> transformation -> XSL-FO -> formatter -> pdf. But
that's not only scenario. Having GUI-based formatter like AntennaHouse XSL
formatter it can be XML -> transformation -> XSL-FO -> screen. Otherwise it's
possible to XML -> transformation -> XSL-FO -> formatter -> printer. Another
interesting new approach could be
XML -> transformation -> XSL-FO -> transformation -> WordML document (for
Microsoft Word 2003).

[1] http://www.w3.org/TR/xsl/slice1.html...n-and-Overview
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

Jul 20 '05 #4
Han
Let me shorten Oleg's nice explanation.

You can use XSLT to transform XML into HTML. By the same token, you can use
XSLT to transform XML into XSL-FO. XSL-FO and HTML are same in that both are
final output, not intermediate transformation technology.

Temporarily XSL-FO document can be formatted to be viewed/printed as PDF,
EPS, and non-major browser. More than that in the future. Even sound is one
of the important standards of XSL-FO.

--
Please send me lots of spams. I'm testing my message rule blocking spams.
"Oleg Tkachenko" <oleg@NO_SPAM_PLEASEtkachenko.com> wrote in message
news:O0**************@TK2MSFTNGP10.phx.gbl...
Simon Harvey wrote:
Could you or anyone else elaborate on that a bit more. I thought that xsl was the technology needed to do conversions. Why can it do html but not pdf. How does FO relate to xsl?
First of all let's make a difference between XSL and XSLT. As per W3C
recommendations, XSL = XSL Transformations (XSLT) + XSL-FO vocabulary.
XSLT is XML transformation language, with predefined XML, HTML and text

output formats. HTML case is simple - due to ubiquitous web browsers it's just simple XML to HTML transformation, XML -> transformation -> HTML.
But because pdf is binary non-markup-based data format it's unfeasible to
generate pdf with XSLT (may be only simplest pdf documents). That's by design, recall XSLT is *XML* transformation language.
So, they have created XSL-FO (another descendant of DSSSL, which was (and it is) actually XPath+XSLT+XSL-FO all in one). The idea of XSL is to allow to
produce high-quality document presentation (usually printed one) by expressing presentation semantics in XSL-FO and then formatting XSL-FO to actual
device-specific presentation, see [1]. So there is one more player in this
scenario - XSL-FO formatter, which formats (and sometimes renders) XSL-FO.
Usual scenario is XML -> transformation -> XSL-FO -> formatter -> pdf. But
that's not only scenario. Having GUI-based formatter like AntennaHouse XSL
formatter it can be XML -> transformation -> XSL-FO -> screen. Otherwise it's possible to XML -> transformation -> XSL-FO -> formatter -> printer. Another interesting new approach could be
XML -> transformation -> XSL-FO -> transformation -> WordML document (for
Microsoft Word 2003).

[1] http://www.w3.org/TR/xsl/slice1.html...n-and-Overview --
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

Jul 20 '05 #5
Thanks guys, especially Oleg for taking the time to explain that. Thats just
what I needed so thanks again.

One thing I'm not sure about. Is the need for FO in addition to xsl based in
the fact that PDF's are a binary format and html (or more accurately, xhtml)
are markup technologies like xml. Indeed xhtml is actually valid xml which
is of course the point. Would it be as simple as XSL - markup, FO - binary?
or is that an over simplification.

Are there FO's that can be used to create other doc types?

Thanks again guys

Simon
Jul 20 '05 #6
Oleg Tkachenko <oleg@NO_SPAM_PLEASEtkachenko.com> wrote in message news:<O0**************@TK2MSFTNGP10.phx.gbl>...
Simon Harvey wrote:
Could you or anyone else elaborate on that a bit more. I thought that xsl
was the technology needed to do conversions. Why can it do html but not pdf.
How does FO relate to xsl?


First of all let's make a difference between XSL and XSLT. As per W3C
recommendations, XSL = XSL Transformations (XSLT) + XSL-FO vocabulary.
XSLT is XML transformation language, with predefined XML, HTML and text output
formats. HTML case is simple - due to ubiquitous web browsers it's just simple
XML to HTML transformation, XML -> transformation -> HTML.
But because pdf is binary non-markup-based data format it's unfeasible to
generate pdf with XSLT (may be only simplest pdf documents). That's by design,
recall XSLT is *XML* transformation language.
So, they have created XSL-FO (another descendant of DSSSL, which was (and it
is) actually XPath+XSLT+XSL-FO all in one). The idea of XSL is to allow to
produce high-quality document presentation (usually printed one) by expressing
presentation semantics in XSL-FO and then formatting XSL-FO to actual
device-specific presentation, see [1]. So there is one more player in this
scenario - XSL-FO formatter, which formats (and sometimes renders) XSL-FO.
Usual scenario is XML -> transformation -> XSL-FO -> formatter -> pdf. But
that's not only scenario. Having GUI-based formatter like AntennaHouse XSL
formatter it can be XML -> transformation -> XSL-FO -> screen. Otherwise it's
possible to XML -> transformation -> XSL-FO -> formatter -> printer. Another
interesting new approach could be
XML -> transformation -> XSL-FO -> transformation -> WordML document (for
Microsoft Word 2003).

[1] http://www.w3.org/TR/xsl/slice1.html...n-and-Overview


"Another interesting new approach could be XML -> transformation ->
XSL-FO -> transformation -> WordML document (for Microsoft Word
2003)."

That would be just what I need! Do you have any information regarding
this kind of procedure (is it even feasible?) Any links/resources
regarding this you could point me towards would be greatly
appreciated!

Eliza Zadura
Trainee-Developer
Jul 20 '05 #7
Eliza Zadura wrote:
"Another interesting new approach could be XML -> transformation ->
XSL-FO -> transformation -> WordML document (for Microsoft Word
2003)."

That would be just what I need! Do you have any information regarding
this kind of procedure (is it even feasible?) Any links/resources
regarding this you could point me towards would be greatly
appreciated!


I'm still investigating this approach aka learning WordML schema.
Well, resources... XSL-FO is well documented, and WordML - you can download
Word 2003 CDK to get WordML XML Schema. Additionally MSFT guys has posted
WordML2HTML stylesheet [1] some time ago, it can be useful also.
btw, what's your use case?

[1]
http://www.microsoft.com/downloads/d...displaylang=en
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

Jul 20 '05 #8
You may want to have a look at a live demo of XSL-FO => PDF in action,
in this case the XSL-FO being created programmatically through the
eXtc XML technology (www.mgateway.com)

For the demo : www.mgateway.com/pdfsvg.htm

The idea here is to demonstrate the role of XSL-FO/PDF for creating
precisely laid out documents within web applications - precise page
layout for printing (eg labels, official forms, invoices) is not
practical via the browser.

Rob

On Sun, 27 Jul 2003 19:10:56 +0100, "Simon Harvey"
<sh856531@microsofts_free_emal_service.com> wrote:
Thanks guys, especially Oleg for taking the time to explain that. Thats just
what I needed so thanks again.

One thing I'm not sure about. Is the need for FO in addition to xsl based in
the fact that PDF's are a binary format and html (or more accurately, xhtml)
are markup technologies like xml. Indeed xhtml is actually valid xml which
is of course the point. Would it be as simple as XSL - markup, FO - binary?
or is that an over simplification.

Are there FO's that can be used to create other doc types?

Thanks again guys

Simon


---
Rob Tweed
M/Gateway Developments Ltd

Global DOMination with eXtc : http://www.mgateway.tzo.com
---
Jul 20 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: John Baker | last post by:
HI; I feel like a fool..I put CUTE FTP in my last request for help --it should have been CUTE PDF! I have FTP on my mind because I have been...
15
by: Mark C | last post by:
All, I have exhaustingly been looking through the newsgroups in search of a way to systemically output an Access 97 report to a pdf file using...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this...
16
by: cyranoVR | last post by:
This is the approach I used to automate printing of Microsoft Access reports to PDF format i.e. unattended and without annoying "Save As..."...
3
by: David | last post by:
Should you be able to map a any file extension to the ASP.NET dll and have it execute ASP.NET script, just like an .aspx page, when it is requested...
9
by: Paul Kuebler | last post by:
??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????...
7
by: Ryan Taylor | last post by:
Hi. I have some code that dynamically generates a PDF and spits this content directly to the web browser. I use HTMLDoc to create the Pdf's from...
5
by: Ray Booysen | last post by:
Hi all After finding out that my pdf library (ABCPdf) doesn't support HTML being imported as an input (Well it does but doesn't support the...
6
by: mistral | last post by:
what is correct way open a PDF document in new window use hyperlink? I want show images thumbnails linked with PDF files, when click on thumbnail,...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.