XSL url path

View: New views
2 Messages — Rating Filter:   Alert me  

XSL url path

by fopinaus :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there,

Could you please tell me is it possible to use a url rather than a file for the xslt in the command line?  

eg

"C:\Program Files\fop-0.95\fop.bat" -xml "F:\test\testxml.xml" -xsl "http://blah/testStylesheet.xsl" -pdf "F:\test\test.pdf"

If I just pass in the pass in the url as per the line above it gets prefixed with c:\\
Error: xsl file c:\\http:\blah\testStylesheet.xsl not found.

I appreciate your help with this.    

 

Re: XSL url path

by Simon Pepping @ Home :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Oct 27, 2009 at 09:16:59PM -0700, fopinaus wrote:

>
> Hi there,
>
> Could you please tell me is it possible to use a url rather than a file for
> the xslt in the command line?  
>
> eg
>
> "C:\Program Files\fop-0.95\fop.bat" -xml "F:\test\testxml.xml" -xsl
> "http://blah/testStylesheet.xsl" -pdf "F:\test\test.pdf"
>
> If I just pass in the pass in the url as per the line above it gets prefixed
> with c:\\
> Error: xsl file c:\\http:\blah\testStylesheet.xsl not found.

Apparently it is not possible, as you yourself proved. It seems like
FOP does not expect a URI, and considers the path as a relative
path. This could definitively be improved.

Simon

--
Simon Pepping
home page: http://www.leverkruid.eu

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@...
For additional commands, e-mail: fop-users-help@...