This is the mail archive of the xsl-list@mulberrytech.com mailing list .
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
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 |
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |