|
Subject: [xsl] attribute management From: "bix xslt" <bix_xslt@xxxxxxxxxxx> Date: Thu, 21 Nov 2002 16:10:45 +0000 |
Any help would be appreciated! Thanks, Brian
<content> <uri> <dir>./pics</dir> <root>btn</root> <img_ext>gif</img_ext> <link_ext>html</link_ext> </uri> <target>body</target> <icon id="cont_mot"> <text>Motivation</text> <uri><root>mot</root></uri> </icon> <icon id="cont_req"> <text>Requirements</text> <uri><root>req</root></uri> </icon> </content>
<xsl:template name="uri">
<xsl:attribute name="background">
<xsl:choose>
<xsl:when test="./uri/dir">
<xsl:value-of select="./uri/dir" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/content/uri/dir" />
</xsl:otherwise>
</xsl:choose>/ <xsl:choose>
<xsl:when test="./uri/root">
<xsl:value-of select="./uri/root" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/content/uri/root" />
</xsl:otherwise>
</xsl:choose>. <xsl:choose>
<xsl:when test="./uri/img_ext">
<xsl:value-of select="./uri/img_ext" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/content/uri/img_ext" />
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:template>| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Exclusions in XPATH, Wendell Piez | Thread | Re: [xsl] attribute management, Jeni Tennison |
| RE: [xsl] How do you select all uni, Wendell Piez | Date | Re: [xsl] How do you select all uni, Jeni Tennison |
| Month |