in reply to Re: Re: LibXML 'Fun'
in thread LibXML 'Fun'

I'm ignorant of this aspect of LibXML, but are you sure that
$list2[0]->push($node);
side-effects $tree?

Should I assume that you're printing a content-header in code that you haven't shown? Or is the content header part of the XSL?

Replies are listed 'Best First'.
Re: Re: Re: Re: LibXML 'Fun'
by stefzody (Acolyte) on Oct 12, 2003 at 01:56 UTC
    ah. now, thats a thought. i was assuming that it did indeed change the xml file loaded into $tree. I will go and play around with that, thank you for the pointer and thought :)

    Also, a small note, i have the header in the XML file as is. i take it that this is 'frowned upon' ?

      Also, a small note, i have the header in the XML file as is. i take it that this is 'frowned upon' ?

      Not at all. The lack of a content-type header is a likely culprit for the symptoms you reported, so I asked. Putting the content-type header (and any other necessary headers) in the template gives a more cohesive solution than putting the content-type into code and the content into a separate template. On the other hand, emitting a content-header early, from code, makes a number of problems easier to diagnose.