xsl-list
[Top] [All Lists]

Re: Include States

2003-04-16 09:05:23
Got it... you suck the states into the stylesheet using the document()
function... and then parse away.
Thanks!
Karl


  <xsl:variable name="state-xml" select="document('states.xml')/states"/>

  <xsl:template match="/">
    <select name="states-dropdown">
      <xsl:for-each select="$state-xml/state">
        <option value="{(_at_)abbr}"><xsl:value-of select="."/></option>
      </xsl:for-each>
    </select>
  </xsl:template>
</xsl:stylesheet>



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>