I have a table with four columns, of which one is <type>. I want to sort my values and NOT print the rows wher type is 1.
This is my table:
<table border="1">
<tr bgcolor="#ccc">
<th>Namn</th>
<th>Modell</th>
<th>Pris</th>
<th>Typ</th>
</tr>
These are my commands for sorting:
<xsl:for-each select="//ad">
<xsl:sort select="type" order="descending" />
<xsl:sort select="name"/>
<xsl:sort select="model"/>
I tried to use this value-of select, and was able to print only type 2, but I am not sure where to add the line.
–<xsl:apply-templates select="type[not(. = '1')]">
SO, my question is where to add it inside the for each-loop, and if it should be open or closed.
Any pointers are very welcome!
Without seeing your input and more of your program, it’s hard to tell, but have you tried this?