Subject: RE : [xsl] regarding xpath From: "Nicolas Mazziotta" <Nicolas.Mazziotta@xxxxxxxxx> Date: Wed, 24 Apr 2002 11:59:48 +0200 |
> ----------------------------------------------- > <xsl:for-each select="/colleges/college/name"> > <xsl:value-of select="."/>. > </xsl:for-each> > ----------------------------------------------- > OR > ----------------------------------------------- > <xsl:for-each select="//colleges/college/name"> > <xsl:value-of select="."/>. > </xsl:for-each> > ----------------------------------------------- > OR > ----------------------------------------------- > <xsl:for-each select="//college/name"> > <xsl:value-of select="."/>. > </xsl:for-each> > ----------------------------------------------- 1. the chilren of colleges [/ selects the document root (which is always the parent of the document element)] are college, which have a child: name 2. the children of collegues (// = no matter where it is in the tree) are college, which have children: name 3. The children of collegue (// = no matter where it is in the tree) : name See http://www.w3.org/TR/xpath#location-paths and http://www.w3.org/TR/xpath#path-abbrev They are clearer than I am XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] regarding xpath, william locksman | Thread | Re: [xsl] regarding xpath, Jeni Tennison |
[xsl] regarding xpath, william locksman | Date | Re: [xsl] regarding xpath, Jeni Tennison |
Month |