Simple xsl question

Subject: Simple xsl question
From: "Selva, Francis" <Francis.Selva@xxxxxxxxxxxxxxx>
Date: Fri, 31 Mar 2000 14:30:05 -0800
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


Current Thread