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