Helpful Information
Home
Categories
Contact us
Category: XML Programming
XML attributes
How do I output attributes in a xml tag.
Ex.
<headline href="http://www.whatever.com"> Whatever </headline>
I can output the Whatever text in the browser, but I don't know how to ouput the href attribute. I am using xsl in IE 5.0 browser.
Everything has to have an xsl attribute defined...
Ex.
<a>
<xsl:attribute name="href">
<xsl:value-of select="@URL" />
</xsl:attribute>
<img border="0">
<xsl:attribute name="src"><xsl:value-of select="@IMAGE_SRC" />.gif</xsl:attribute>
</img>
</a>
Hope this helps :-)
privacy (GDPR)