|
Subject: Re: [xsl] Identifying unique attribute values in nested sibling elements From: "Mark" <mark@xxxxxxxxxxxx> Date: Thu, 29 Sep 2011 13:49:28 -0700 |
Ken, I still have not correctly said what I need:
<a href="../aval/1.htm">1kc</a> <a href="../aval/1-50.htm">1.50kc</a> <a href="../aval/0-50.htm">40h</a> <!-- think of 40cents --> <a href="../aval/a.htm">A</a>
xsl:function name="cps:letter-file-name" as="xs:string"> <xsl:param name="l" as="xs:string"/> <xsl:value-of select="concat(lower-case($l), '.htm')"/> </xsl:function>
<xsl:function name="cps:value-file-name" as="xs:string">
<xsl:param name="kc" as="xs:string"/>
<xsl:param name="h" as="xs:string"/>
<xsl:choose>
<xsl:when test="$h">
<xsl:value-of select="concat($kc, '-', $h, '.htm')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat($kc, '.htm')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:function><xsl:function name="cps:display-denomination" as="xs:string">
<xsl:param name="kc" as="xs:string"/>
<xsl:param name="h" as="xs:string"/>
<xsl:choose>
<xsl:when test="$kc eq '0'">
<xsl:value-of select="concat($h,'h')"/>
</xsl:when>
<xsl:when test="not($h eq '0')">
<xsl:value-of select="concat($kc, '.', $h, 'KD
')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat($kc, 'KD
')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:function>Thanks again, Mark
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Identifying unique attrib, Mark | Thread | Re: [xsl] Identifying unique attrib, G. Ken Holman |
| Re: [xsl] SAX ParseException error:, Michael Kay | Date | [xsl] Re: XPath that returns nothin, Olivier Lefevre |
| Month |