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]

Fw: how to access the element which is in the top in XSL.


Never mind. I figured it out.
 select="ancestor::two/child::three/statistic[@one]"

Rebecca

> > i have navigated upto <seven1>. If at this point i
> > > want to refer to the element "three".
> >
> > select="ancestor::two/child::three"
>
> What if we changed the format to
>
>
>  <one>
>        <two>
>             <three>something</three>
>                     <statistic one>aaaa</statistic one>
>                   <four>
>                         <statistic one>xxx</statistic one>
>                          <five>
>                                <six>
>                                      <seven>
>                                      <seven1>
>
>  Do I have to do an apply-template on "ancestor::two/child::three" in
order
> to get to associated <statistic one> value or is their some clever way I
can
> do the entire selection in one line?
>
> Rebecca
>
>


 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]