Subject: Re: Include States
From: "Karl J. Stubsjoen" <karl@xxxxxxxxxxxxx>
Date: Wed, 16 Apr 2003 09:05:23 -0700
|
Got it... you [expletive deleted] 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="{@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
|