This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: XPath question


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]