Subject:Formatting Objects Author:Arman Rivard Date:13 Jul 2004 10:04 AM
I'm trying to use formatting objects.
I've opened catalog.xsl under the formatting objects examples dir.
Using the video scenario which has Apache FOP selected for Post Process
Yet when I preview results I dont see the processing outputs or see the acrobat viewer as described in the help docs.
Subject:Formatting Objects Author:Minollo I. Date:13 Jul 2004 02:02 PM
...
>Yet when I preview results I dont see the processing outputs or see the acrobat
>viewer as described in the help docs.
Are you previewing the XSLT result with XSLT | Preview Result ?
Do you see a "Processing complete" message at the bottom of the XSLT editor window?
Do you see an Output Window at the bottom of the Stylus Studio area? If yes, what's the content?
I reloaded Stylus just to make sure no changes were made to the examples.
I think I know whats happening.
In the gui, when I switch from XSLT Source to WYSIWYG mode, it changes my xsl output method to html.
For the fo stuff to work it has to be xml doesnt it?
Isn't this a problem?
I open a formatted objects file, look at it in the WYSIWYG and it breaks it.
It's not only the output method that it modifies, it changes other areas which make the rendering to fail.
Does this mean there is NO WYSIWYG when FO is used?
How should I be editing using the fo directives?
Steps
- Load catalog.xsl
- Select the WYSIWYG tab
- Set html back to xml using the Params tab
- Attempt to run the result
Post processing starting...
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser<br>
[INFO] FOP 0.20.5rc3a
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser<br>
[INFO] building formatting object tree
[INFO] setting up fonts
[Fatal Error] proD3.xml:3:2: The markup in the document following the root element must be well-formed.
[ERROR] The markup in the document following the root element must be well-formed.
...post processing finished
Subject:Formatting Objects Author:Minollo I. Date:13 Jul 2004 10:51 PM
>Isn't this a problem?
>I open a formatted objects file, look at it in the WYSIWYG and it breaks it.
>It's not only the output method that it modifies, it changes other areas which make the rendering to fail.
WYSIWYG is a shortcut used in Stylus Studio for XML to HTML WYSIWYG; that's why the output method is changed, and the stylesheet is interpreted and modified to generated HTML.
>Does this mean there is NO WYSIWYG when FO is used?
That's correct; there is no direct FO WYSIWYG. There are tools that are supposed to automatically convert HTML to FO (like http://html2fo.sourceforge.net/).
>How should I be editing using the fo directives?
If your goal is to create an FO document as the result of your XSLT processing, yes, you are supposed to directly create FO directives.