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

RE: XPath Assistance

Subject: RE: XPath Assistance
From: Randy Oxentenko <randy@xxxxxxxxxxxxx>
Date: Fri, 28 Mar 2003 16:13:50 -0600
RE:  XPath Assistance
XSLT Programmer's Reference by Michael Kay
(I know you asked for a website, but...)
I have no connection to the book or author except as a satisfied book owner.
Get it while you still can.  Those predicates are well covered in that book.

Some of the predicates you listed below are described in NodeSetFunctionCall,
but puzzling this out from the W3C specification is not my idea of the easiest
way to learn it.

http://www.w3.org/TR/1999/WD-xslt-19990421#NT-NodeSetFunctionCall

Randy Oxentenko


-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Scott Purcell
Sent: Friday, March 28, 2003 3:44 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  XPath Assistance


Hello,
I am going through  the 'Java and XSLT' book and I ran into a chapter about
Xpath:

I have been seeing a lot fo examples that use what I believe are predicates:

eg:
    <xsl:apply-templates
select="presidents/president/name[child::first='John']"/>
	    <xsl:apply-templates select="presidents/president[count(vicePresident) =
0]/name"/>
           <xsl:apply-templates select="presidents/president[position() =
3]/name"/>

etc.

I thought I would be smart to figure out what predicates are available and
surfed over to the w3.org web site. Then went to link 6.2 Expressions:
http://www.w3.org/TR/1999/WD-xslt-19990421#NT-Predicate

But I do not see any of  the above predicates?

I would like to know what I can use there, but do not understand possibly all
the different ones:

Also, in the above example: child::first='John'
How could I find John if the name was lower case john?
Eg: I would like to find John or john or JOHN or JOhn.

If there is a better site to refer to please include:

Sincerely
Scott

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



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


Current Thread
  • XPath Assistance
    • Scott Purcell - Fri, 28 Mar 2003 16:40:46 -0500 (EST)
      • Randy Oxentenko - Fri, 28 Mar 2003 17:13:24 -0500 (EST) <=
      • <Possible follow-ups>
      • Passin, Tom - Fri, 28 Mar 2003 17:17:55 -0500 (EST)

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.