Login  Register

RE: problem with url generator and character &

Posted by Steve Bayliss on Jan 26, 2010; 10:14am
URL: https://discuss.orbeon.com/problem-with-url-generator-and-character-tp1288184p1290190.html

Escaping the & should work fine, ie & - I've used this with the URL
generator.  What error are you getting?

-----Original Message-----
From: ricetrac [mailto:[hidden email]]
Sent: 23 January 2010 13:36
To: [hidden email]
Subject: [ops-users] problem with url generator and character &



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&param2=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&amp;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 &amp; 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-and-character-tp1288184p1288
184.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