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

String match within block of text

Subject: String match within block of text
From: "Tanzila Mohammad" <tmohammad@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 19 Apr 2001 12:25:13 +0100
font color block xsl
The xml is as follows:
<Genus>
<Species>
         <Specie href="Pf000362.htm">A. ampliceps</Specie>
         <Specie href="Pf000363.htm">A. bivenosa</Specie>
</Species>
<Synonyms> A. ampliceps makes with A. bivenosa a
      complex which also includes A. ligulata, A. salicina and A.
      sclerosperma although the latter three are morphologically quite
      different from the former two and also quite distinct from one
another.
</Synonyms>
</Genus>
-----------------------------------------------------
The output would be:

Synonyms
A. ampliceps (as a link) makes with A. bivenosa (as a link) a
complex which also includes A. ligulata, A. salicina and A.
sclerosperma although the latter three are morphologically quite
different from the former two and also quite distinct from one another.
-----------------------------------------------------------------
 The xsl is:
<xsl:template match="Grasslands/Synonyms" priority="1">
   <h3><font color="#00007F">
      <i><xsl:value-of select="name()" /></i>
      </font></h3>
   <p><font color="#008000"><xsl:value-of select="." /></font></p>

<!-- the aim is to match the species string within synonyms and if they
match create a url link"
<!--<xsl:if test="??">
     <xsl:for-each match="Grasslands/Species/Specie">
      <font color="#008000">
       <i> <a href="{@href}"> <xsl:value-of select="." />
        </a></i>
      </font>
     </xsl:for-each>
  </xsl:if> -->

</xsl:template>

Tanz


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.