THANK YOU!
You know, sometimes an extra set of eyes is really wonderful.
Ted
On Sep 26, 2005, at 7:42 PM, JBryant(_at_)s-s-t(_dot_)com wrote:
<xsl:variable name="all">
<xsl:copy-of select="$path2pageAsSource |
/root/folder"
/>
</xsl:variable>
produces a result tree fragment.
Try
<xsl:variable name="all" select="$path2pageAsSource |
/root/folder"
/>
Just as a general rule, always write your variables this way, unless
circumstances force you to do otherwise.
Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)
Gustave Stresen-Reuter <tedmasterweb(_at_)mac(_dot_)com>
09/26/2005 01:31 PM
Please respond to
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
cc
Subject
[xsl] How to select child elements of a given type
<xsl:variable name="all">
<xsl:copy-of select="$path2pageAsSource |
/root/folder"
/>
</xsl:variable>
<xsl:for-each select="$all/descendant-or-self::folder">
stuff...
</xsl:for-each>
This for-each construct works with Saxon but not with Sablotron,
libxslt, or Xalan-J.
If I remove the /descendant-or-self::folder it works fine (but of
course, doesn't select the nodes I'm looking for).
I've tried using other shortcuts ($all//*/folder) and such, but they
all return the same error.
Any ideas what the problem might be?
Ted Stresen-Reuter
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--