Subject: Re: [xsl] ordering and iteration problem From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 01 May 2001 16:32:35 +0100 |
I'm curious why one typically initializes "random-nodes" from the stylesheet document rather than the input document. It seems to me that the input document is guaranteed to have enough nodes, while the XSLT transform document might not if the input document is big enough.
Instead of
<xsl:variable name="random-nodes" select="document('')//node()" />
I tried
<xsl:variable name="random-nodes" select="//node()" />
to get the set of all nodes from the input document. This seems to work for me. I was wondering if there is any reason why this is not what is typically done.
Regards, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] ordering and iteration pr, Mark Nahabedian | Thread | Re: [xsl] ordering and iteration pr, Jeni Tennison |
Re: [xsl] using multiple xsl's with, Jeni Tennison | Date | Re: [xsl] Recursion Examples, Jeni Tennison |
Month |