[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: questions regarding using the following xpath

Subject: RE: questions regarding using the following xpath
From: "Oleg Tkachenko" <olegt@xxxxxxxxxxxxx>
Date: Fri, 22 Mar 2002 19:54:41 +0200
following xpath
Hello!

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

---
Oleg Tkachenko,
Multiconn International, Israel 

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of ªL ¤lªä
> Sent: Friday, March 22, 2002 6:50 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  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 ¬Ûï´£¨Ñ±z³Ì²³æªº¤è¦¡¤À¨É¨Ã¦C¦L±zªº¬Û¤ù¡A½Ð²¾¦Ü
> http://photos.msn.com/support/worldwide.aspx¡C
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.