I was wondering if someone could help me out. I'm trying to perform an
XSL transformation on an XML document that uses entities. While I can
do XSLT on a file without entities, it all falls apart when I try and
add an entity. Here are my files...
-----TEST.XML------
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="test.xsl"?>
<!DOCTYPE document [
<!ENTITY externalparagraph SYSTEM "test2.xml">
]>
<document>
<paragraph>Lorem ipsum dolor.</paragraph>
<paragraph>Duis iaculis purus id augue.</paragraph>
&externalparagraph;
</document>
-------------------
-----TEST2.XML-----
<?xml version="1.0" encoding="UTF-8"?>
<paragraph>hello world!</paragraph>
-------------------
-----TEST.XSL------
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"
doctype-system="http://www.w3.org/TR/html4/loose.dtd"
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" />
<xsl:template match="/">
<xsl:for-each select="//paragraph">
<xsl:value-of select="."/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
-------------------
Now, this works fine when I load up text.xml in IE6, however if I load
it up in Firefox 1.0 it fails.
It also fails when I try and do my transformation usine
MSXML2.DOMDocument in ASP.
Can anyone give me some pointers as to what I'm doing wrong?