Hi guys
I posted last week about splitting data up into sevral pages and got a great response that i should create divs for each page and show / hide them via hyperlinks.
Well i've got a new problem I've applied this technique to sorting by creating more divs which display content in a sorted manner.
The problem i am having is this:
As you can see each result has a category. I've created a div to sort the results by the category value. But i would like to only show results from certain categories.
So i would have a link for books and a link for cars, when books is clicked it shows only results where category value is books etc.
I've tried:
<xsl:sort select="category/@Books"/>
but this doesnt seem to work
Any ideas?
thanks
andy
I posted last week about splitting data up into sevral pages and got a great response that i should create divs for each page and show / hide them via hyperlinks.
Well i've got a new problem I've applied this technique to sorting by creating more divs which display content in a sorted manner.
The problem i am having is this:
Code:
<query>
<result>
<title>example</doctitle>
<location>c:\somewhere</location>
<category>Books</category>
</result>
<result>
<title>example</doctitle>
<location>c:\somewhere</location>
<category>Cars</category>
</result>
<result>
<title>example</doctitle>
<location>c:\somewhere</location>
<category>Books</category>
</result>
</query>
As you can see each result has a category. I've created a div to sort the results by the category value. But i would like to only show results from certain categories.
So i would have a link for books and a link for cars, when books is clicked it shows only results where category value is books etc.
I've tried:
<xsl:sort select="category/@Books"/>
but this doesnt seem to work
Any ideas?
thanks
andy