wrong href in a-element

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

wrong href in a-element

Heinrich Götzger
Hoi,

in my hand crafted form with Orbeon Forms 4.5.0.201404080036 CE is code
like:

   <xh:a href="{concat('nextPage?key=', $key)}">
      <xf:output ref="$key"/>
   </xh:a>


But the link created in the page looks like:

oxf:/nextPage?key=000000000000000000


But I'd expect smthg. like:


http://myServer:8080/app/nextPage?key=000000000000000000


Any ideas on how this can be fixed?


Thanks and cheers

Heinrich

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: wrong href in a-element

Alessandro  Vernet
Administrator
Hi Heinrich,

Is that in an .xhtml file using XForms and directly referenced from your page-flow.xml? I am trying this here with recent code, and it is working as expected. If it works for you with a recent release (4.5 is quite old!), would upgrading be an option for you?

Otherwise, would adding an xml:base="http://…" on your XML document help?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: wrong href in a-element

Alessandro  Vernet
Administrator
Hi Heinrich,

If adding an `xml:base` attribute doesn't help and you're using XInclude, can you try adding, on the `<xi:include>` element itself, the attribute `xxi:omit-xml-base="true"`? Let's see if this helps.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: wrong href in a-element

Heinrich Götzger
In reply to this post by Alessandro Vernet
Hoi Alex,

thanks for your quick answer.
Yes, it's a xml-include in a xhtml-File using xforms directly referenced
from page-flow.xml.
I tried already get a reproducing example to place in the list, but it's
working there as expected :(
As customer sticks to 4.5, I didn't try with a recent release yet. I
posted the question in the hope someone has an idea.

Adding base... is not changing anything :(

Tomorrow there will be a new sensation, hopefully.

Thanks, cheers

Heinrich

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: wrong href in a-element

Heinrich Götzger
In reply to this post by Alessandro Vernet
Hoi Alex,

thanks for that hint, that solved the problem. Adding
'xxi:omit-xml-base="true"' to every input in the cascade which contains
the a-tag is the solution for this issue. :)

Cheers

Heinrich

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: wrong href in a-element

Heinrich Götzger
I've to correct, only the first include needs this attribute.

Btw. where can I find information like this?

Thanks, cheers

Heinrich

--
Before printing this e-mail, think about our environmental responsibility.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: wrong href in a-element

Alessandro  Vernet
Administrator
Hi Heinrich,

You can find some information about this, specifically, on the page linked below. But I have to say this is pretty esoteric, and I am thus not too surprised that you haven't found about it :). And of course, Im very glad this solved the issue!

http://wiki.orbeon.com/forms/doc/developer-guide/processors-xinclude

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Loading...