Re: [xsl] Include States

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


Current Thread