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

Re: variables

Subject: Re: variables
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Tue, 28 Feb 2006 14:23:40 -0500
Re:  variables
Hi,

At 12:53 PM 2/28/2006, you wrote:
Hi,

Is it possible to make this two lines into one. (somehow to match @label
against current node @uri without creating new variable $current_section)

<xsl:variable name="current_section"><xsl:value-of
select="@uri"/></xsl:variable>

<xsl:for-each
select="document($menue_doc)//*[@label=$current_section]/descendant::section
">

Certainly:


<xsl:for-each
  select="document($menue_doc)//*[@label=current()/@uri]/descendant::section">

That's exactly what the current() function is for.

Cheers,
Wendell


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================

Current Thread
  • variables
    • Bokluci - 28 Feb 2006 18:32:09 -0000
      • Florent Georges - 28 Feb 2006 20:12:12 -0000
      • Message not available
        • Wendell Piez - 28 Feb 2006 20:12:38 -0000 <=

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-2011 All Rights Reserved.