Hoping somebody can help. I have links that appear using XML/XSL and i would like to have those links open in a new browser window. Here is the part of the XLS code to create the links:
<xsl:template match="piece">
<li>
<xsl:variable name="href">
<xsl:value-of select="link" />
</xsl:variable>
<xsl:variable name="name">
<xsl:value-of select="name" />
</xsl:variable>
<a href="{$href}">
<xsl:value-of select="name" />
</a>
</li>
</xsl:template>
Is there an easy what to have the links created open in a new window when clicked (similar to html <a href=" target="_blank">Site Name</a>)
I'm not very well versed in XSL or XML, so if more information is needed please just let me know.
Thank you.
<xsl:template match="piece">
<li>
<xsl:variable name="href">
<xsl:value-of select="link" />
</xsl:variable>
<xsl:variable name="name">
<xsl:value-of select="name" />
</xsl:variable>
<a href="{$href}">
<xsl:value-of select="name" />
</a>
</li>
</xsl:template>
Is there an easy what to have the links created open in a new window when clicked (similar to html <a href=" target="_blank">Site Name</a>)
I'm not very well versed in XSL or XML, so if more information is needed please just let me know.
Thank you.