Problem with url-generator
Posted by
ricetrac on
Jan 25, 2010; 8:52am
URL: https://discuss.orbeon.com/Problem-with-url-generator-tp1289130.html
Hello,
I would to generate a pdf document with the processor url generator.
I build the url with the xslt processor, but in this url I need to put parameters separate by an "&" :
http://url.com/test?param1=toto¶m2=titiI can't use directly the character &, so I put '&' when I build my URL :
<p:processor name="oxf:xslt">
<p:input name="data" href="#instance"/>
<p:input name="config">
<config xsl:version="2.0">
<url>
http://url.com/test?param1=toto¶m2=titi</url>
<content-type>application/pdf</content-type>
</config>
</p:input>
<p:output name="data" id="url-config"/>
</p:processor>
<p:processor name="oxf:url-generator">
<p:input name="config" href="#url-config"/>
<p:output name="data" id="editionpdf"/>
</p:processor>
I put this url in the url-generator but it doesn't work. Why ? because, I think that the & character is not unescaped by the url-generator, so the url doesn't work.
I use orbeon 3.5.1, tomcat 5.5.25 and jdk 1.6
Can You help me ?
Thank you, and sorry for my poor english. (I'm a french user).