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

(text processing) lexical context

Subject: (text processing) lexical context
From: "Nicolas Mazziotta" <Nicolas.Mazziotta@xxxxxxxxx>
Date: Wed, 24 Apr 2002 08:29:29 +0200
lexical context

I'm working with xsl to process marked-up text for linguistic purpose.
The current aim is to generate lists that extract some elements and its
current context.


This is the <w>first</w> <i>sentence</i>. This is the <w>second</w>
<i>sentence</i>. This is the <w>third</w> <i>sentence</i>.

would be formatted so that the list would look like:

<li>first: This is the <b>first</b> <i>sentence</i>. 
<li>Second: This is the <w>second</b> <i>sentence</i>. 
<li>Third: This is the <b>third</b> <i>sentence</i>.

But I can't figure out how I can select the text surrounding the <w>
element without using <xsl:value-of.../>, which does not allow me to
process the following <i> element...

i.e., I get

<li>first: This is the <b>first</b> sentence. 
<li>Second: This is the <w>second</b> sentence. 
<li>Third: This is the <b>third</b> sentence.

and the <i> element is lost...

And I can't do <xsl template match="substring(...)"> because substring
is not a DOM node.

Help: is there a way to process substrings or stg?

N. Mazziotta

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

Current Thread


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.
First Name
Last Name
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.