Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


prev/next ability within XSLT

From: "rich" <rwaldis@----------.--->
To: 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



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent