Problem with url-generator

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with url-generator

ricetrac
This post was updated on .
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=titi

I 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).
Reply | Threaded
Open this post in threaded view
|

Re: Problem with url-generator

Erik Bruchez
Administrator
Did you try writing "&amp;" instead of "&"?

-Erik

On Mon, Jan 25, 2010 at 12:52 AM, ricetrac <[hidden email]> wrote:

>
> 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=titi
>
> I 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&param2=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).
>
> --
> View this message in context: http://n4.nabble.com/Problem-with-url-generator-tp1289130p1289130.html
> Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Problem with url-generator

ricetrac
Hello,

I write "&" in my xpl file.  This is a bad copy/paste in the mail.
In fact, the problem is my url that was malformed. (a blank between the parameters)
The url-generator unescaped correctly the "&" character.

Thank you for your response.