I've noticed that if I don't assign the node-set to another variable I
do not time out.

For example:

        <xsl:variable name="page-content">
                <h3>test</h3>
        </xsl:variable>

        <xsl:variable name="content">
                <xsl:copy-of select="$entry/body" />
                <xsl:copy-of select="$page-content" />
        </xsl:variable>

        <xsl:variable name="need-page-navigation"
select="count(com:node-set($content)[h2|h3|h4]) > 0" />

Does not throw an error. The need-page-navigation is set to false,
though. I believe this is still another affect of the result tree
fragment.

On Sat, May 17, 2008 at 8:00 AM, Olmo Maldonado
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm running PHP 5 with libxslt extension. I'm consolidating a node set
> from my xml as well as a tree fragment from another variable:
>
>        <xsl:variable name="page-content">
>                <h3>test</h3>
>        </xsl:variable>
>
>        <xsl:variable name="contents">
>                <xsl:copy-of select="/data/page/title/entry/body" />
>                <xsl:copy-of select="$page-content" />
>        </xsl:variable>
>
> From what I've read I cannot do the following because of the $content
> is a tree fragment:
>
>        <xsl:variable name="need-page-navigation"
> select="count($contents[h2|h3|h4])" />
>
> As a result, I have attempted:
>
>        <xsl:variable name="page-content">
>                <h3>test</h3>
>        </xsl:variable>
>
>        <xsl:variable name="contents">
>                <xsl:copy-of select="/data/page/title/entry/body" />
>                <xsl:copy-of select="$page-content" />
>        </xsl:variable>
>        <xsl:variable name="content" select="exsl:node-set($contents)" />
>
>        <xsl:variable name="need-page-navigation" 
> select="count($content[h2|h3|h4])" />
>
> When I try running this again, my server times out. I've tried to get
> to the kernel of the problem and it seems it is the node-set. I
> simplified the above to just:
>
>        <xsl:variable name="page-content">
>                <h3>test</h3>
>        </xsl:variable>
>        <xsl:variable name="content" select="exsl:node-set($page-content)" />
>        <xsl:variable name="need-page-navigation" 
> select="count($content[h2|h3|h4])" />
>
> And still I timeout.
>
>
> Thanks for your time.
>
_______________________________________________
xslt mailing list, project page http://xmlsoft.org/XSLT/
[email protected]
http://mail.gnome.org/mailman/listinfo/xslt

Reply via email to