bigbavarian
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by bigbavarian
-
-
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
-
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
Auto populate form dropdown field
in XSLT/XSL-FO
Posted
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.
I know the lise in HTMP should be something like the following.
Any suggestions? Stephen