1

I need to add in front of every select value this hard coded string mobile/

this select hyperlink from xml:

<a href="{Hyperlink/a/@href}" name="xslt">

I tried this but it only gets value from xslt expression:

<a href="'mobile/' + {Hyperlink/a/@href}"> XXX </a>

1 Answer 1

1

Try using concat()

<a href="{concat('mobile/',Hyperlink/a/@href)}" name="xslt"> XXX </a>

Also, <a href="mobile/{Hyperlink/a/@href}"> XXX </a> should've worked for you originally. Are you sure that your current context would have Hyperlink as a child?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.