|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] String match within block of text
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








