Selecting XML node attributes with XSL/Xpath - easy question!

Just a quick question for any XML gurus out there

I have this top level node:


<?xml version='1.0' encoding='ISO-8859-1'?>
<?xml-stylesheet type='text/xsl' href='printStyle.xsl'?>
 
<batch num='59'>
...Other xml code ...
</batch>
 

and I’m trying to print out the number 59 from attribute num into IE. So my XSL code looks like:


...
<h2>Batch Make Up Sheet: <xsl:value-of select="@num"/></h2>
...

But this doesn’t render anything in IE other than the rest of my correct XSL code. So my question is, how do I select and print out attributes in XSL?

Many thanks,
Daf :red: