Jump to content

beginner question


Recommended Posts

ok, there is a drop down box with a list of options. But it reoccurs on the page a number of times. but i only want the output once.the select tag has a value I can track, but i want the list of <options> below.This is what i have so far:

<?xml version="1.0"?><xsl:stylesheet version="1.0"  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  xmlns:htm="http://www.w3.org/1999/xhtml">  <xsl:template match="htm:select[@name='selection']">  <xsl:value-of select="."/>  </xsl:template>  <xsl:template match="text()"/></xsl:stylesheet>

lets say the options were A B C D E but the box appeared on the page 3 times. The output here would be A B C D E A B C D E A B C D Ewhat would I need to do to just get A B C D E

Link to comment
Share on other sites

<?xml version="1.0"?><xsl:stylesheet version="1.0"  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  xmlns:htm="http://www.w3.org/1999/xhtml">  <xsl:template match="htm:td[2]/htm:font/htm:select">  <xsl:value-of select="."/>  </xsl:template>  <xsl:template match="text()"/></xsl:stylesheet>

I sorted it by navigating to a particular one.. what can I say.. erm .. thanks?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...