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

RE: Word Highlighting

Subject: RE: Word Highlighting
From: Jarno.Elovirta@xxxxxxxxx
Date: Tue, 5 Nov 2002 11:25:47 +0200
javascript word highlighting
Hi,

[snip]

> Now, my problem is that the text is french, with characters 
> entities (like é). 
> 
> If I have words with entities in them, like 
> cathédrale, they are considered as three text() nodes, 
> not one, and my template matching fails. 

Which processor are you using? Entities will not generate separate text nodes in the data model, il.e. a text node never has an immediately following or preceding sibling that is a text node - see <http://www.w3.org/TR/xpath#section-Text-Nodes>.

Anyhow, if you have to use a product which creates several text as you described, your problem becomes a grouping problem: process only the first (or last) text node in a group of consecutive text nodes, and there combine the consecutive text nodes into a RTF, and pass that to "marquage" template.

Cheers,

Jarno

 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.