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

Re: Troublshooting XSLT replace()

Subject: Re: Troublshooting XSLT replace()
From: Graydon <graydon@xxxxxxxxx>
Date: Tue, 3 Dec 2013 16:59:41 -0500
Re:  Troublshooting XSLT replace()
On Tue, Dec 03, 2013 at 04:48:32PM -0500, Nathan Tallman scripsit:
> Thank you, Graydon. I am cleaning up a huge stack of XMLs;
> unfortunately I cannot use lower() because there may be other text in
> <unitdate> that needs to remain capitalized.

Well, bother.  replace() it is, then.

> > <xsl:template match="text()[ancestor::unittittle]">

If there's lots, you might want

<xsl:template match="text()[ancestor::unittittle][normalize-space()]">

instead; the optimizer will _probably_ figure out that you're only
interesting in text nodes with some non-whitespace contents, but it
rarely hurts to provide a hint.

-- Graydon

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.