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

**URL:** <https://forum.kirupa.com/t/selecting-xml-node-attributes-with-xsl-xpath-easy-question/200700>\
**Category:** programming\
**Created:** [September 14, 2006, 11:38am UTC](https://forum.kirupa.com/t/selecting-xml-node-attributes-with-xsl-xpath-easy-question/200700 "2006-09-14T11:38:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daffy\_dowden](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/daffy_dowden/32/2371_2.png) [@daffy\_dowden](https://forum.kirupa.com/u/daffy_dowden)\
**Post date:** [September 14, 2006, 11:38am UTC](https://forum.kirupa.com/t/selecting-xml-node-attributes-with-xsl-xpath-easy-question/200700/1 "2006-09-14T11:38:07Z")

</div>

Just a quick question for any XML gurus out there

I have this top level node:

```auto

<?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:

```auto

...
<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:
