Subject:new guy attempting xslt Author:sean anthony Date:03 Aug 2013 04:40 PM
Hi All,
Please bare with me im a network engineer rather than a coder, but have had to turn my hand to this for a project im working on, any chance someone could help me with what I hope will be a simple XSLT question. Given the snippet of xml shown below
<audio>
<file>
<name>file1_wav.wav</name>
</file>
</audio>
</resources>
[/code]
I need to find a way to select only the wav file dynamically each time and ignore the other two currently I have the following but clearly it just selects the first one.
[code]
<xsl:for-each select="resources/audio/file">
</xsl:for-each>
[/code]
Is it possible to do something like
[code]
<xsl:if test="@name = '*.wav'">
[/code]
Really sorry but im out of my depth here and getting really frustrated as nothing I try works.