Replacing string in URL with XSL variable



Using XSLT 1.0


I have a URL that I need to replace strings with certain XSL variables.



<script src="http://ift.tt/1wzqS7f" type="text/javascript" ></script>


I need to replace [ORDER_ID] and [REVENUE] with the following XSL values:



<xsl:value-of select="/root/Runtime/OrderNumber"/>

<xsl:value-of select="/root/Orders/Order/OrderSubtotal"/>


While also removing the [] brackets.


An example of the finalized script code would be:



<script src="http://ift.tt/1uubH28" type="text/javascript" ></script>

No comments:

Post a Comment