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

Re: preceding/following character?

Subject: Re: preceding/following character?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 20 Jun 2005 14:15:44 +0100
count following character
> Cool; thanks!  If I understand right, this has the advantage that it  
> the separate templates makes it easier to use in the context of  
> importing stylesheets.

Not really. Just that it works rather than not works:-)


> Maybe use translate() to   convert " ." to "."?

replace() not translate() translate() only does single character translations.

Note also that my code doesn't cope with the . not being a sibling of
the cite (the test file I posted demonstrates that, but I don't think I
highlighted it)


see the result I posted

   Some text and more text [XXX1]<EM>. S

The . inside the em isn't pulled before the cite.

If you need to do that I'd do as Mike suggested and do a first pass that
normalises things so the cite and . are always siblings.

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.