I have the following xml file
<DriveLayout>
<Drive driveVolume="/u" Group="sa" Owner="sa" totalSpace="4" />
<Drive driveVolume="/u" Group="sa" Owner="sa" totalSpace="16" />
<Drive driveVolume="/u" Group="sa" Owner="sa" totalSpace="510" />
<Drive driveVolume="/u" Group="sa" Owner="sa" />
<Drive driveVolume="/u" Group="sa" Owner="sa" totalSpace="15" />
<VolumeGroups>
<VolumeGroup storage="1" />
<VolumeGroup totalSpace="32" />
<VolumeGroup totalSpace="16" />
</VolumeGroups>
</DriveLayout>
I'm trying to access it using an xslt stylesheet which looks something like this.
<td class="LabelText" Width="10%">
<xsl:value-of select="/DriveLayout/VolumeGroups/@totalSpace" />
</td>
This doesn't seem to be correct does anyone know what the correct XPATH would be?
Also, I want to use an xslt if statement to see if the field totalSpace exists in the Drive node. I tried using something like this below but this was unsuccessful.
<xsl:if test="@totalSpace = ''" >
Thanks for any help.