xsl-list
[Top] [All Lists]

[xsl] Simple variable problem

2006-05-31 10:06:13
The below code attempts to go through a list of people and then grab
their associated expenses from a dynamic ASP page serving up XML.

At the line which contains the asp file I use $id incorrectly as a
marker. What is the correct syntax to get the value of the present
value of 'id'

----

<xsl:for-each select="Records/Record">
        <div id="record">
                <div id="line1">
                        <span id="date">
                                <xsl:value-of select="date" />
                        </span>
                        <span id="expenses">
                                <xsl:value-of
select="document('http://www.server.org/getExpenses.asp?key=activity_id&amp;val=$id&amp;table=Expenses')"
/>
                        </span>
                </div>
        </div>
</xsl:for-each>

---

Steve Yeago
http://www.yeago.net

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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