xsl-list
[Top] [All Lists]

RE: [xsl] Add one word in starts-with function

2009-12-23 06:26:39
Dear Gerrit,

Thank you for the help

Thanks,
Selva
-----Original Message-----
From: Imsieke, Gerrit, le-tex 
[mailto:gerrit(_dot_)imsieke(_at_)le-tex(_dot_)de] 
Sent: Wednesday, December 23, 2009 4:49 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Add one word in starts-with function

If you use, e.g., Saxon, and XSLT 2.0 stylesheets, you will be able to 
utilize XPath 2.0 regex matching:

<xsl:value-of select="@id[matches(., '^(Section|Paragraph)')]"/>

Gerrit

Selvaganesh schrieb:
Yes, Andrew. 

-----Original Message-----
From: Andrew Welch [mailto:andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com] 
Sent: Wednesday, December 23, 2009 4:18 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Add one word in starts-with function

2009/12/23 Selvaganesh <selvaganesh_t(_at_)hovservices(_dot_)in>:
Hi Andrew,

apologetic for missing date.

Input
<derivations id="Section 83">
<derivations id="Paragraph 83">

XSL

<xsl:template match="derivations">
<font size="4" align="center"><B><xsl:value-of select="@id[starts-with(.,
'Section')]"/></B></font><xsl:apply-templates/>
</xsl:template>


How can I add the one more starts-with word in single function

do you mean:

select="@id[starts-with(., 'Section') or starts-with(., 'Paragraph')]"

?



-- 
Gerrit Imsieke
Geschäftsführer / Managing Director
le-tex publishing services GmbH
Weissenfelser Str. 84, 04229 Leipzig, Germany
Phone +49 341 355356 110, Fax +49 341 355356 510
gerrit(_dot_)imsieke(_at_)le-tex(_dot_)de, http://www.le-tex.de

Registergericht / Commercial Register: Amtsgericht Leipzig
Registernummer / Registration Number: HRB 24930

Geschäftsführer: Gerrit Imsieke, Svea Jelonek,
Thomas Schmidt, Dr. Reinhard Vöckler

--~------------------------------------------------------------------
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>
--~--



Confidentiality Notice:  This transmittal is a confidential communication.  If 
you are not the intended recipient, you are hereby notified that you have 
received this transmittal in error and that any review, dissemination, 
distribution or copying of this transmittal is strictly prohibited.  If you 
have received this communication in error, please notify this office 
immediately by reply and immediately delete this message and all of its 
attachments, if any.


--~------------------------------------------------------------------
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>
--~--