xsl-list
[Top] [All Lists]

Re: preceding/following character?

2005-06-20 06:15:44

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
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--