Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 8th, 2006, 04:30 PM
Authorized User
 
Join Date: Mar 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default getnodes after specific text

Hi,

   i have a xml like this:

                 <i>test1</i>.
                 <i>test2</i>,
                 <i>test3</i>::
                 <i>test4</i>.


 how can i get italic nodes that ends with . in my apply template.

    <xsl:template match="i|I">
       <xsl:apply-templates mode="largeImage"/>
    </xsl:template>

Thanks,
pendyalap


 
Old June 8th, 2006, 05:13 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

match="i[following-sibling::node()[1][self::text()][startswith(.,'.')]"

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to fetch text after specific tag text dipsut XSLT 10 May 23rd, 2007 02:57 PM
submitting printer specific code/text to a port dcarlile C# 1 December 8th, 2005 07:58 AM
Set cursor at specific location in text box pritz Beginning VB 6 1 August 15th, 2005 12:22 PM
Focussing on a specific text box Dilip Nagle General .NET 4 January 6th, 2005 02:16 PM
Heighlight specific text when open file in browser salman Classic ASP Databases 1 May 5th, 2004 02:07 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.