Re: XPath question

Subject: Re: XPath question
From: Matt Sergeant <matt@xxxxxxxxxxxx>
Date: Thu, 11 May 2000 13:52:41 +0100 (BST)
On Thu, 11 May 2000, [iso-8859-1] Sydney wrote:

> Hi
> 
>     <div type="introduction">
>     <head>Introduction</head>
>     <pb/>
>     
>     <div type="partie">
>     <p>Test
>     </p>
>     <pb/>
>     </div>
>     
>     </div>
> 
> <xsl:template div[@type='introduction']">
> <xsl:for-each select="./*/pb">
> Find pb
> </xsl:for-each>
> </xsl:template>
> 
> Why xt find only one pb.

Because you specified only div's with the attribute type="introduction".

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org http://xml.sergeant.org


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


Current Thread