xsl-list
[Top] [All Lists]

Fixed that xsl:choose issue.

2003-05-05 19:14:19

        I fixed the previous problem I was having, like so:

        <xsl:template match="entry.link">

                <xsl:choose>              
                        <xsl:when test="not(preceding-sibling::entry.link)"> <!--  
 -->
                                SEE ALSO: <i><a 
href="#{(_at_)to(_dot_)entry}"><xsl:apply-templates/></a>; </i>
                        </xsl:when>

<xsl:when test="preceding-sibling::entry.link and not(following-sibling::entry.link)">
                                <i><a 
href="#{(_at_)to(_dot_)entry}"><xsl:apply-templates/></a>. </i>
                        </xsl:when>

                        <xsl:otherwise>
                                <i><a 
href="#{(_at_)to(_dot_)entry}"><xsl:apply-templates/></a>; </i>
                        </xsl:otherwise>
                </xsl:choose>
                
        </xsl:template>

        Just thought y'all might be interested. Thanks for the help!

--->Ben


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



<Prev in Thread] Current Thread [Next in Thread>
  • Fixed that xsl:choose issue., Ben Trafford <=