View Single Post
  #2 (permalink)  
Old June 22nd, 2009, 09:23 AM
mhkay's Avatar
mhkay mhkay is offline
Wrox Author
Points: 12,735, Level: 48
Points: 12,735, Level: 48 Points: 12,735, Level: 48 Points: 12,735, Level: 48
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 3,923
Thanks: 0
Thanked 82 Times in 80 Posts
Default

Rather than describing your problem in terms of the user experience, it's much easier for us if you show the XML input and HTML output of your transformation, simplified as much as possible to remove irrelevancies.

Your code fragments mean nothing in the absence of a source document.

By the way

Code:
<xsl:variable name "currpage">
   <xsl:value-of select="/pagelocation/page_info/@pagename">
</xsl:variable>
is a verbose and inefficient (and sometimes incorrect) way of writing

Code:
<xsl:variable name "currpage" select="/pagelocation/page_info/@pagename"/>
Get out of the habit before it's too late.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
Reply With Quote