xsl-list
[Top] [All Lists]

Re: [xsl] xsl:key() and $variables.

2006-07-21 21:42:50
It seems we crossed wires, Ken... Wish I would have read your reply first, before hitting send. Oh well, such is life :)

G. Ken Holman wrote:

At 2006-07-21 15:54 -0400, Steve wrote:

Anyone have a 1.0 interpretation of this?

   <xsl:apply-templates
     select="key('records',
                 key('activities',
                     'yes',
                     document('blah.xml')),
                 $records)"/>


I gave you one:

  http://www.biglist.com/lists/xsl-list/archives/200607/msg00515.html

but then you said "the <people> tree is actually a variable" in:

  http://www.biglist.com/lists/xsl-list/archives/200607/msg00529.html

and then you said "I have a variable containing <Records>" and "<xsl:apply-templates select="$variable/..." in:

  http://www.biglist.com/lists/xsl-list/archives/200607/msg00603.html

Since you can't push a result tree fragment variable in XSLT 1.0, you seem to obviously be using XSLT 2.0.

So, since you are using XSLT 1.0, you cannot push a result tree fragment variable, so you are back to using files, which is the answer I already provided.

We're only trying to help here ... you keep moving the goalposts.

. . . . . . . . . . Ken

--
Registration open for UBL training:    Montréal, Canada 2006-08-07
Also for XSL-FO/XSLT training:    Minneapolis, MN 2006-07-31/08-04
Also for UBL/XML/XSLT/XSL-FO training: Varo,Denmark 06-09-25/10-06
World-wide corporate, govt. & user group UBL, XSL, & XML training.
G. Ken Holman                 mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Aug'05  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


--~------------------------------------------------------------------
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>
--~--





--~------------------------------------------------------------------
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>
--~--