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

Re: Select value from document -T2

Subject: Re: Select value from document -T2
From: "António Mota" <amsmota@xxxxxxxxx>
Date: Mon, 6 Mar 2006 13:01:56 +0000
t2 document
Take a look at previous-sibling axis, contain() function ans
substring-after() function.

On 03/03/06, geoff hopkins <geoffhopkins123@xxxxxxxxx> wrote:
> Take2.
>
> Below is a example of an input xml basically have to
> change the format to that below.  So when START is
> found start reading and stop reading when STOP is
> found.  Have sorted this out ok!
>
> The problem I have is getting the value which is
> outside of the START and STOP tags @doc it is uniquely
> identified in the document as having 'Name:' at the
> start of the text within the node (would prefer it to
> search for first instance of this text)
>
> I can't share the true xml doc for data protection
> issues.
>
> Thanks. Geoff
>
> Example of input doc.
>
> <root>
> <a>sdfsdfsd</a>
> <a>dsfssdf</a>
> <a>Name: DOC_ID1</a>
> <a>iuhs</a>
> <a>sdfsdf</a>
> <a>sdfsd</a>
> <a>START</a>
> <a>A1,A2</a>
> <a>A3,A4</a>
> <a>A5,A6</a>
> <a>A7,A8</a>
> <a>STOP</a>
> <a>sdfsdfds</a>
> <a>sdfsdfsd</a>
> </root>
>
> Example of output:
> <root>
> <doc>
> <relationship parent="A1" child="A2" doc="DOC_ID1"/>
> <relationship parent="A3" child="A4" doc="DOC_ID1"/>
> <relationship parent="A5" child="A6" doc="DOC_ID1"/>
> <relationship parent="A7" child="A8" doc="DOC_ID1"/>
> </doc>
> </root>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.