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

RE: Add one word in starts-with function

Subject: RE: Add one word in starts-with function
From: "Selvaganesh" <selvaganesh_t@xxxxxxxxxxxxxx>
Date: Wed, 23 Dec 2009 17:00:31 +0530
RE:  Add one word in starts-with function
Dear Gerrit,

Thank you for the help

Thanks,
Selva
-----Original Message-----
From: Imsieke, Gerrit, le-tex [mailto:gerrit.imsieke@xxxxxxxxx]
Sent: Wednesday, December 23, 2009 4:49 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  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.j.welch@xxxxxxxxx]
> Sent: Wednesday, December 23, 2009 4:18 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Add one word in starts-with function
>
> 2009/12/23 Selvaganesh <selvaganesh_t@xxxxxxxxxxxxxx>:
>> 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
Geschdftsf|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.imsieke@xxxxxxxxx, http://www.le-tex.de

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

Geschdftsf|hrer: Gerrit Imsieke, Svea Jelonek,
Thomas Schmidt, Dr. Reinhard Vvckler



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.

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.