xsl-list
[Top] [All Lists]

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

2009-12-23 05:48:25
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')]"

?


-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

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