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
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Arman RivardSubject: 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.

Thanks

Postnext
Minollo I.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?

Thanks,
Minollo

Postnext
Arman RivardSubject: Formatting Objects
Author: Arman Rivard
Date: 13 Jul 2004 02:20 PM
Originally Posted: 13 Jul 2004 02:16 PM
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?

Postnext
Minollo I.Subject: Formatting Objects
Author: Minollo I.
Date: 13 Jul 2004 05:13 PM
Yes; post-processing is activated only if the XSLT output is forced to be or recognized as XML.

Minollo

Postnext
Arman RivardSubject: Formatting Objects
Author: Arman Rivard
Date: 13 Jul 2004 05:38 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.

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

Posttop
Minollo I.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.

Minollo

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
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.