Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: prev/next ability within XSLT prev/next ability within XSLTTo: NULL Date: 10/5/2005 12:47:00 PM Is there a way to have prev/next capability within XSLT if I have all values already in the XML and just want to show one at a time? I am trying to stay away from using an <A> with HREF if possible - but if I need to do it that way I can figure it out on my own. Basically, my XML looks something like this: <Property code="abc" name="ABC Corp." /> <Property code="def" name="DEF Corp" /> My XSL at the moment is very simple, basically displays a series of edit fields for each attribute of property. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:dt="urn:schemas-microsoft-com:datatypes" version="1.0"> <xsl:template match='/'> <xsl:apply-templates/> </xsl:template> <xsl:template match="root" > <table> <xsl:apply-templates select="Property" /> </table> </xsl:template> <xsl:template match="Property"> <tr> <td>Property Code:</td> <td><input type="text"> <xsl:attribute name="value"> <xsl:value-of select="@vCode"/> </xsl:attribute> </input> </td> <td>Property Name:</td> <td><input type="text"> <xsl:attribute name="value"> <xsl:value-of select="@vTIN"/> </xsl:attribute> </input> </td> </tr> </xsl:template> </xsl:stylesheet> I have tried using variable, param, key, position and other ways to enable some way to allow the user to "click" something which would increment the position to the next or prev record already present in the XML. Can this be done using just XSL? If I do have to use the anchor href option, doesn't it go back to the server for the page and potentially another DB hit? Thanks in advance | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
