[xslt] after lib update: xpath.c:11040 Internal error: document without root



Hi ,

after updateing my libxslt library to 

  xsltproc --version
  Using libxml 20609, libxslt 10106 and libexslt 804
  xsltproc was compiled against libxml 20609, libxslt 10106 and libexslt 804
  libxslt 10106 was compiled against libxml 20609
  libexslt 804 was compiled against libxml 20609

i get some strange error messages i dont understand:

  xpath.c:11040 Internal error: document without root
  xpath.c:11040 Internal error: document without root

My html output seems to be the same as before.
I found this template generating the message:

<xsl:template name="write.chunk">
  <xsl:param name="filename" select="''"/>
  <xsl:param name="method" select="'html'"/>
  <xsl:param name="encoding" select="'ISO-8859-1'"/>
  <xsl:param name="content" select="''"/>

  <xsl:document href="{$filename}"
                method="{$method}"
                encoding="{$encoding}"
                indent="{$indent}" xmlns:exslt="http://exslt.org/common";
                omit-xml-declaration="yes">
      <xsl:apply-templates select="exslt:node-set($content)" 
mode="html.defaults"/>
  </xsl:document>

</xsl:template>

$content is a generated complete html document which is saved to variable 
content to do some html parsing afterwards. it has a root <html> element, but 
i guess the message is talking about root node and not root element. But how 
do i add a root node? and what does this message really mean? 

can somebody give me a hint what to look for?

kind regards,
janning




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