xsl-list
[Top] [All Lists]

RE: [xsl] How to extract data from an element and not from its children

2006-12-06 09:44:51

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(_at_)twindesign(_dot_)nl] 
Sent: Wednesday, December 06, 2006 11:36 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>