Forum Moderators: phranque
ive got some xml like this
<programme>
<name>blah</name>
<onair>y</onair>
<genre>whatever</genre>
<ram>rp</ram>
<website>/whatever/</website>
<rplink>test</rplink>
</programme>
<programme>
<name>another</name>
<onair>y</onair>
<genre>whatever</genre>
<ram>rp</ram>
<website>/whatever/</website>
<rplink>test</rplink>
</programme>
and some templates to go with this...
in my xsl -
some html
then apply templates to <programme> elements beginning with 'A'
some html
then apply templates to <programme> elements beginning with 'B'
some html
then apply templates to <programme> elements beginning with 'C'
my question is how do i get that effect of applying to only elements with the first letter matching what i want...something like....
<xsl:apply-templates select="programme(name,1,1='a')" />
but that doesnt work
Anyone?