|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: preceding/following character?
On Jun 20, 2005, at 5:24 AM, David Carlisle wrote:
<xsl:template match="cite[not(following-sibling::node()[1][self::text()[starts- with(.,'.')]])]"> 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. $ saxon cite.xml cite.xsl <?xml version="1.0" encoding="utf-8"?><div> Some text and more text .[XXX1] Some <EM>more</EM> text. Some text and more text .[XXX2]ffff[XXX3] If I could just ask one more question: how conceptually would I then remove the preceding (now superfluous) space? Maybe use translate() to convert " ." to "."? Bruce
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








