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

RE: XPath expressions

Subject: RE: XPath expressions
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 25 Mar 2009 11:11:10 -0400
RE:  XPath expressions
Hi,

At 07:04 AM 3/25/2009, Mike wrote:
Anything you see in an attribute named "select" or "test" is an XPath
expression.

...


[responding to the OP]
> Means we have to pass single quotes within double quotes like this.
> Is this method called the XPath expression?
>
> <xsl:template name="str:tokenize">
>     <xsl:param name="args" select="'$args'" />
>     <xsl:param name="delimiters" select="' '" />
>
> It will be surely there in later part of the book.But can
> anyone tell me now which are exactly XPath expressions?

Moreover:


The XPath expression "'$args'" evaluates to a string, "$args".

The XPath expression "$args" would evaluate to a reference to the variable (or parameter) $args.

In the example above, the template assigns a default value, the string "$args", to the $args parameter. This is not wrong, but it might be a bit confusing.

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

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.