Jump to content

bigbavarian

Members
  • Posts

    3
  • Joined

  • Last visited

bigbavarian's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. I am getting closer. I am ablr to see all the items in a dropdown but there are two issues I can still use some help with. 1. It shows all ever single item even duplicated. I would like to limit it to only showing unique values.2. When I select, it in the form, it is not passing the value. I cannot figure out how to incorporate that I know how to do it in html but not with the combination of the two. <TD width= "75"> <select style='width:225px;' name='Business' id='Business'> <option selected="selected" value="">All</option> <xsl:for-each select="ViewAll/ROW"> <option><xsl:value-of select="SC_DF_FIELD_6"/></option> </xsl:for-each> </select> </TD> I know the lise in HTMP should be something like the following. <option value='TimeWarner'>TimeWarner</option> Any suggestions? Stephen
  2. Hello Everyone, I am new to learning how to code xslt and was wondering if someone has some code to share that will take the values of a XML file to auto populate a dropdown field in a form. I have it workign with th epreset options but if someone adds a new value to the table I need to manually add it to the form. Any tips would be helpful. Thanks, Stephen
  3. Hello everyone, I am new to xsl and trying to adjust an existing template at work. I am trying to change the value of a tag via the xsl. Example: Is the value of the SC_DF_FIELD_2 field in xml is "inactive", I would like to to display as something like "retired". I saw some code that I have been trying to insert into the existsing document but I am unable to get it to work. When I look at the xml, it appears like below. <SC_DF_FIELD_2 display_name="Employee status" element_type="r"><![CDATA[inactive]]></SC_DF_FIELD_2> This was the code I received.<xsl:template match="A1[text() = '0']"><A1>AA</A1></xsl:template> I changed it to read <xsl:template match="SC_DF_FIELD_2[text() = 'inactive']"><SC_DF_FIELD_2>retired</SC_DF_FIELD_2></xsl:template> Is there something else I should be doing? Thanks for taking a look. Stephen
×
×
  • Create New...