Subject: Re: [xsl] Dynamic DOCTYPE inclusion applying XSLT on doc hierarchy From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Wed, 05 Jun 2002 21:42:06 +0200 |
<xsl:apply-templates select="document('toplevel-file-doctype_and_entities.xml')"/>
The problem, however, is that this makes XSLT processing start again with the XSLT document root node ("/"), leading to an infinite loop.
That shouldn't have happened. Processing should have aborted because
the XML was not well-formed. (You can't declare a DOCTYPE and then not have a document element). Apparently when this error was encountered,
your XSLT processor kept on going as if you had done document(''), which
means to use the stylesheet as the argument.
<xsl:template match="/"> <!-- applies template on the root node of another.xml --> <xsl:apply-templates select="document('another.xml')"/> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Dynamic DOCTYPE inclusion, Mike Brown | Thread | [xsl] Translating Arrays into HTML, Rajput, Ashish S |
RE: [xsl] RE: [slightly OT] questio, Macaulay,Malcolm (US | Date | RE: [xsl] James Clark on Schema, Jim Melton |
Month |