First I want to specify my goal. I am tasked to show a url concatenated to a constant string particularly '&src=JB-10081' as an attribute of xml tag in the output.
Here is my code:
<vacancy>
<xsl:attribute name = "url">
<xsl:value-of disable-output-escaping="yes" select="concat(apply_url, '&src=JB-10081')"/>
</xsl:attribute>
<vacancy>
This code gives me a result of:
<vacancy id="6747232000011108" datestart="" dateend="" language="" origin="" url="https://dtt.taleo.net/careersection/10540/jobapply.ftl?lang=en-GB&job=27050&src=JB-10081">
you could notice that the URL and the string literal is shown correctly except that the output shown for the string literal was not changed to & and instead shown as & can someone help me to show it as & and not &
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…