Re: [xslt] libxslt and inline node sets combining into a variable, timeout problems



Thanks for the reply.

It wasn't so much that the result is an invalid node-set.

I've got the xslt working now, and the needed change was from:

    <xsl:variable name="content" select="exsl:node-set($rtf)" />

To:
    <xsl:variable name="content" select="exsl:node-set($rtf)/*" />

If I had to guess, my server was crashing/hanging since I was
selecting a fake root node. Perhaps exsl:node-set forgot to get rid of
the fake root node that occurs when you create a tree fragment:

<xsl:variable name="rtf">
    <h1>1</h1>
    <h2>2</h2>
    <h3>3</h3>
</xsl>

Olmo M.

On Sun, May 18, 2008 at 6:27 AM, Mark Howe <mark cyberporte com> wrote:
>  > my server times out
>
> I've never tried XSLT via PHP, but my guess is that LibXSLT is crashing
> horribly as a result of the broken node-set code, and the PHP wrapper
> isn't picking up the pieces.
>
> If at all possible, use xsltproc to test your stylesheet against your
> xml from the command line. You'll then get any error messages at once,
> and I'd be surprised if the error in this case isn't "invalid type"
> (because, in my experience of using node-set, it's always "invalid type").
> _______________________________________________
> xslt mailing list, project page http://xmlsoft.org/XSLT/
> xslt gnome org
> http://mail.gnome.org/mailman/listinfo/xslt
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]