[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: dictating node processing order

Subject: RE: dictating node processing order
From: Américo Albuquerque <melinor@xxxxxxx>
Date: Tue, 29 Jul 2003 17:34:21 +0100
xsl processing order
Hi

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Nathan Shaw
> Sent: Tuesday, July 29, 2003 1:28 PM
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  dictating node processing order
> 
> 
> I am trying to allow an end user of an application to
> have the ability to pass in which fields they would
> like to see and in which order, as well as, what the
> sort order should be, when they view the results page
> of a search run against an LDAP server.
> 
> To accomplish this, I am shoving their desired fields
> (which are ordered in the order in which they should
> be displayed in the resulting XHTML document) and sort
> order into the XML document so that I can pick them
> out with my XSLT (this was chosen instead of passing
> params into the parser for portability's sake).
> 

(...)

> However, when trying to output the desired fields in
> the proper order, I am running into design problems.
> 
> This is what I am attempting now, but apparently 
> xsl:apply-templates needs an actual node set, not a string 
> representing a pointer to a node set.
> 

Try this:
<xsl:template match="searchResult">
  <xsl:variable name="res" select="."/>
  <tr>
    <xsl:for-each
select="following-sibling::supplementaryData/display/displayField">
      <xsl:apply-templates select="$res/*[name()=current()]"/>
    </xsl:for-each>
  </tr>
</xsl:template>

(...)

Regards,
Américo Albuquerque



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.