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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> - Stylus Studio - Registrar en o... (1)
-> + Stylus Studio - Registrar en o... (2)
-> + Can a pipeline send a file by ... (2)
-> + After Updateing WIN10 to WIN11... (12)
-> + Where do I add the custom java... (3)
-> + Where is the Diagram tab? (5)
-> + Applying XSLT to Word DOCX/XML (2)
-> - CSV conversion via ConvertToXM... (1)
-> + Text symbols in SS not same as... (4)
-> + Exposing xquery as webservice ... (6)
-> + Syntax Identifier (2)
-> + Saving a Converted XML as an X... (5)
-> + Output document cannot be pars... (4)
-> - Archiving output from conversi... (1)
-> + EDIFACT guideline from Stylus ... (3)
-> + CSV file putting all the data ... (5)
-> + Can't install Home version 64b... (5)
-> + presale - Can I covers this sc... (5)
-> + Problem with UNB (5)
-> + Splitting EDIFACT files pipeli... (4)
-- [1-20] [21-40] [41-60] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2016)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Mike CarrollSubject: Document Path reference after new install
Author: Mike Carroll
Date: 02 Sep 2009 01:05 AM
I have just moved to version 10 of SS Pro after using 8 for a couple of years. My primary need is to load an xml file and xsl style sheet and create a pdf document from them using a custom fop (set in the scenario).

Now this has been working for over 18 months.

However when I load my style sheet and try and run it to create the document, it comes up with a severe error;

"SEVERE: Exception
java.io.FileNotFoundException: Error: xsl file C:\Program Files\Stylus Studio 2009 Release 2 XML Professional Suite\bin\file:\c:\Strategis\Printing\Lubricants%20Installation\Templates\lub_invoice.xsl not found
at org.apache.fop.cli.CommandLineOptions.checkSettings(CommandLineOptions.java:733)
at org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:145)
at org.apache.fop.cli.Main.startFOP(Main.java:154)
at org.apache.fop.cli.Main.main(Main.java:197)

Now it has obviously got confused with the path to the document, even though the document is already loaded and on screen. I have checked and unchecked the "store paths relative to the xslt path" in the scenario, but that doesn't help.

How do I get this thing to use the correct path?

(Deleted User) Subject: Document Path reference after new install
Author: (Deleted User)
Date: 02 Sep 2009 01:08 PM
Hi Mike,
Stylus Studio invokes the FOP processor on an XML file using the local path name (i.e. without the file:// prefix). How are you running the transformation? Are you by chance using a custom post processing step?


Mike CarrollSubject: Document Path reference after new install
Author: Mike Carroll
Date: 02 Sep 2009 04:18 PM
Yes, I am running post processing. Set up is as follows;

Source xml file file:///s:/Printing/Lubricants Installation/Templates/lub_invoice.xml

No other settings here.

Processor - Custom

"c:\Program Files\TIS Software Ltd\Document Formatter\FOP\fop.bat" -xml %1 -xsl %2 -foout %3


"c:\Program Files\TIS Software Ltd\Document Formatter\FOP\fop.bat" %1 %2
create file type .pdf

These settings are exactly the same as I had on SSL 2008 pro. Unfortunately the license stopped activating on this and I had bought the upgrade, so moved to version 10.

The fop path is correct and it operates correctly.

Any thoughts?

(Deleted User) Subject: Document Path reference after new install
Author: (Deleted User)
Date: 03 Sep 2009 07:30 AM
Hi Mike,
Stylus Studio always specifies the XSL parameter (indicated in the custom XSLT processor as the %2 macro) as a full URL, instead of using a local file name (as it does for the %1 macro argument). We will fix this mismatch in a future update of Stylus, but in the meanwhile you can workaround the problem by creating a new batch file containing

set ARG=%2
call fop.bat -xml %1 -xsl "%XSL%" -foout %3

Note that this will not replace the %20 strings into spaces, so be sure to place the XSL being edited in a folder that doesn't contain spaces.

Hope this helps,

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!  

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.