This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Simple xsl question
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: Simple xsl question
- From: "Selva, Francis" <Francis dot Selva at purchasepro dot com>
- Date: Fri, 31 Mar 2000 14:30:05 -0800
- Reply-To: xsl-list at mulberrytech dot com
If my xml file is
<a>
<b val1="c" val2="d">
</b>
</a>
Can I use my xsl like this to access the val1 attribute?
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="a">
<html>
<xsl:apply-templates select="b"/>
</html>
</xsl:template>
<xsl:template match="b">
<font value="10">
<xsl:value-of select="@val1"/></font>
</xsl:template>
Thanx,
Francis
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list