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

Re: why not match text()? (fork from "Novice Question

Subject: Re: why not match text()? (fork from "Novice Question - matching entire text children")
From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke@xxxxxxxxx>
Date: Tue, 21 Dec 2010 00:30:08 +0100
Re:  why not match text()? (fork from "Novice Question
On 21.12.2010 00:05, Syd Bauman wrote:
Watching this conversation, I found myself interested in how many
experts say there is rarely a need to match text nodes. I do that
all the time. Some examples include:

I'd like to second that (didnt dare until you did), and add advanced whitespace normalization to the list: converting <b>term </b> or <i> term</i> (you see something like that in office manuscripts frequently) into <supersemantic>term</supersemantic>. The whitespace mustnt be normalized away, but it has to be pulled out of the marked-up term into the surrounding text.


Glad you posted that, really.

-Gerrit

* transforming straight quotes to curly quotes
* conditionally changing "-" to en-dash or em-dash
* convert PUA characters to<tei:g>  elements
* deal with soft hyphens
* ditching the punctuation that follows a<list>
* finding the character before a footnote

So I'm guessing either
a) there's a better way for me to be doing these things, or
b) those experts who spoke of the rare need for matching text()
    either don't deal with data like mine -- TEI, i.e., mostly mixed
    content --, or deal with so much more of it that my needs for
    matching text() are, in fact, pretty rare from their point of view

I'm hoping someone will post the better way if it's (a). :-)

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.