RE: [xslt] [BUG] Win32, xsltproc, libxml, libxslt, <xsl:include/>



On Wed, 2002-05-08 at 06:05, Igor Zlatkovic wrote:
> Hi there,
> 
> Thanks. Can you provide those XML and XSL files? 

See below. I've shortened main.xsl. If you can't reproduce the error,
I'll send you the full set of files off the list. I realize that inc.xsl
is not correct (it needs an outer <xsl:stylesheet></xsl:stylesheet>),
but libxml should not try to overwrite memory in NTDLL.dll when it
processes it. These files work correctly when inc.xml is correct, BTW.
Considering that I'm writing an isapi filter, allowing the web server to
be torpedoed by the presence of a text file (a bad inc.xsl) isn't a good
thing. Especially since IIS crashes occasionally bluescreen Win2k.

Thanks!


test.xml:

<?xml version="1.0"?>
<page>
<test/>
1: Test document
<br/>
2: Test document
</page>


main.xsl:

<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp   "&#160;"> <!-- non-breaking space --> 
<!ENTITY ldquo  "&#147;"> <!-- Left Double Quote --> 
<!ENTITY rdquo  "&#148;"> <!-- Right Double Quote -->
<!ENTITY trade  "&#153;"> <!-- Trademark Symbol (TM) -->
<!ENTITY rtrade "&#174;"> <!-- Registered Trademark (R) -->
<!ENTITY copy  "&#169;"> <!-- Copyright Symbol --> 
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="1.0">
<xsl:output method="html"/>
<xsl:include href="inc.xsl"/>
<xsl:template match="wobr">
<wobr><xsl:copy-of select="@*"/><xsl:apply-templates/></wobr>
</xsl:template>
</xsl:stylesheet>

inc.xsl:

<xsl:template match="test">
TEST INCLUDE!
</xsl:template>





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