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]
Other format: [Raw text]

RE: questions regarding using the following xpath


Hello!

<xsl:copy-of select="LEVEL/level1[concat(a,b)='helloworld']"/>

---
Oleg Tkachenko,
Multiconn International, Israel 

> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com 
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of 林 子芯
> Sent: Friday, March 22, 2002 6:50 PM
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] questions regarding using the following xpath
> 
> 
> Hi 
> Suppose u have such xml structure....
> 
> <root>
> <LEVEL>
>  <level1>
>   <a>hello</a>
>   <b>world</b>
>   <c>abc</c>
>  </level1>
> </LEVEL>
> <LEVEL>
>  <level1>
>  <a>hello</a>
>   <b>world</b>
>   <c>def</c>
>  </level1>
> </LEVEL>
>  <level1>
>    <a>hi</a>
>    <b>you</b>
>    <c>efg</c>
>  </level1>
> </LEVEL>
> ...
> </root>
> notice that the content within the first two < level 1> tag is identical 
> except for the content of c tag.  
> i was wondering whether i can copy the xml data using such expression (or 
> similiar expression) (in particular the xpath expression) to give the 
> following result?: -
> 
> <xsl:copy-of select="child::LEVEL/child::*[.//level1="helloworld"]/> 
> 
> result:
> 
> <level1>
>   <a>hello</a>
>   <b>world</b>
>   <c>abc</c>
> </level1>
> <level1>
>   <a>hello</a>
>   <b>world</b>
>   <c>def</c>
> </level1>
> 
> mank thanks
> regards
> Kit
> 
> 
> 
> 
> 
> _________________________________________________________________
> MSN 相簿提供您最簡單的方式分享並列印您的相片,請移至
> http://photos.msn.com/support/worldwide.aspx。
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 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]