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

RE: detecting a colon (':') within a para

Subject: RE: detecting a colon (':') within a para
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 29 Jun 2004 16:26:35 +0100
RE:  detecting a colon (':') within a para
<xsl:template match="text()[substring(.,string-length(.),1)=':']">
<xsl:value-of select="."/>
<xsl:processing-instruction name="no-break"/>
</xsl:template>

Untested. You might want to normalize-space() before doing the test.

Michael Kay 

> -----Original Message-----
> From: Naomi Gronson [mailto:naomi_gronson@xxxxxxxxx] 
> Sent: 29 June 2004 16:18
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  detecting a colon (':') within a para
> 
> Is there anyway to find the following scenario:
> 
> <para>The following items you really need to
> know:</para>
> 
> I'd like to be able to find all para's that have a
> colon as their last character and insert a processing
> instruction to tell the output-formatter not to allow
> a page break.  I use processing instructions in many
> other scenarios, but I've never had to look an
> elements actual content.  Any suggestions would be
> appreciated.
> 
> Thanks!
> 
> Naomi
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail 
> 
> --+------------------------------------------------------------------
> 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@xxxxxxxxxxxxxxxxxxxxxx>
> --+--
> 
> 


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.