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

RE: How to extract data from an element and not from i

Subject: RE: How to extract data from an element and not from its children
From: "Dhunta, Vikram \(GE, Corporate\)" <vikram.dhunta@xxxxxx>
Date: Wed, 6 Dec 2006 22:12:29 +0530
RE:  How to extract data from an element and not from i
Would you be better off by re-designing your xml as:
<text>
<content>This text is some test </content>
<content><emph>text</emph></content>
<content>.</content>
</text>

Somehow that text within the xml doesn't seem correct - it looks
orphaned, but I guess the experts can answer that..

Rgds


-----Original Message-----
From: CMS [mailto:cms@xxxxxxxxxxxxx]
Sent: Wednesday, December 06, 2006 11:36 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  How to extract data from an element and not from its
children

Hi,

I can't find a way to solve this problem:

How do I extract the value of an element, without text in its children.
E.g.
how do I extract from the next example the line 'This text is some test
.'.

<text>This text is some test <emph>text</emph>.</text>

I think I am overlooking a simple function, but can't seem to find it.

Martijn Peeters,
Twin Design

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.