This xsl:apply-templates
instruction:
<xsl:if test="$item/tcm:Content/em:Office/em:Address">
<address>
<xsl:apply-templates mode="renderhtml" select="$item/tcm:Content/em:Office/em:Address/node()" />
</address>
</xsl:if>
produces:
<p>
My Office Address
<br />XXXX Road
<br />XXXX District
<br />XXXX, XXXX.
<br />PO Box XXXX
</p>
Now I want to store the produced html in a variable and later call another template to replace the first <p>
element with <p property="v:street-address">
, so that it the final result would be:
<p property="v:street-address">
My Office Address
<br />XXXX Road
<br />XXXX District
<br />XXXX, XXXX.
<br />PO Box XXXX
</p>
Please suggest!!
Thanks
tag only 2) If there is no
tag we need to add address data inside
adress........
, please suggest – Manoj Singh Feb 11 '13 at 05:41