[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Hi,
At 07:04 AM 3/25/2009, Mike wrote:
...
[responding to the OP]
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.
RE: [xsl] XPath expressions
Subject: RE: [xsl] XPath expressions From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 25 Mar 2009 11:11:10 -0400 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XPath expressions, Michael Kay | Thread | [xsl] Group by parameters tag, IZASKUN GUTIERREZ GU |
Re: [xsl] sorting based on variable, David Carlisle | Date | RE: [xsl] Compound filter in for-ea, Wendell Piez |
Month |