absolute paths in pipeline.xsl

1 view
Skip to first unread message

Ashok Hariharan

unread,
Jun 11, 2009, 8:18:00 AM6/11/09
to akomantoso-dev
currently the href paths in pipeline.xsl need to be absolute paths for
the system to be portable across computers...

this is a pain becuase we have to customize the pipeline.xsl for every
computer that we deploy it on...

I realized that making the folliwng change in OAPipelineResolver.java
fixes the problem :


File XSLTFile = new
File(GlobalConfigurations.getApplicationPathPrefix() + xsltURI);

instead of

File XSLTFile = new File(xsltURI);

the Unit tests work fine with this change, also the since the path
prefixing is dynamic its portable across computers.

Ashok

Luca Cervone

unread,
Jun 11, 2009, 8:40:12 AM6/11/09
to akomant...@googlegroups.com
Dear Ashok ,
That's not correct. 
The path in the pipeline works fine according to the location that you choose during the creation of the miniXSLT and the pipeline too. 
For these reason the applicationPathPrefix is inserted during the creation of the pipeline. 
If you try to add it during the resolution of the pipeline you'll have a double prefix in the XSLT path. 

That's because I Assumed that someone creates the pipeline and the mini XSLT and then use them in the same location. 

There are two solutions for this. 

1) Change the path in the pipeline with the desired one
2) I can implement a method that can be called on the pipeline. And these method changes the uri into the pipeline. So, using this last one the pipeline works even if is in another location. 

Ciao
Luca
Luca Cervone
Web and XML solutions designer

e-mail:     cervo...@gmail.com

mobile phone:    0039 348 26 27 545
home   phone:  0039 051 199 82 854

skype:   cervoneluca



Reply all
Reply to author
Forward
0 new messages