This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Simple xsl question



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]