Subject: xsl loop for display in drop-down box From: "Seema Ramanathan" <sramanathan@xxxxxxxxxxxx> Date: Wed, 22 Mar 2000 15:50:57 -0800 |
Hi
I have the following XML tag:
<TITLE>
<FIRST>Something</FIRST>
<FIRST>Everything</FIRST>
<FIRST
Selected="Nothing"></FIRST>
</TITLE>
I want my XSL to display a drop down box with the
first option to be the selected one - that is "Nothing" followed by the others
(Something and Everything).
Here is the XSL i use:
<select name="FIRST">
<xsl:variable name="tmp"><xsl:value-of
select="FIRST/@SELECTED"/></xsl:variable>
<xsl:if test="(normalize($tmp)=true())"> <option><xsl:value-of select="($tmp)"/></option> <xsl:for-each select="MODEL"> <option><xsl:value-of select="."/></option> </xsl:for-each> </xsl:if> </select> When i use the above XSL loop I get a drop down
with "Nothing" displayed followed by "Something", "Everything" and another blank
option. How do i get rid of the blank? I realize its coming from this line "
<FIRST
Selected="Nothing"></FIRST>".
Is there any way i can ignore it?
Any help??? Please and TIA
Seema |
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: How to tell the number of disti, Nikolai Grigoriev | Thread | Re: xsl loop for display in drop-do, Charlie Cox |
RE: Future XSLT extensions. documen, Didier PH Martin | Date | Re: xsl:variable, Mahendran Duraisamy |
Month |