| Don Miller 2004-06-27, 7:16 pm |
| Adding
objXML.validateOnParse = false
before the XML was loaded fixed the problem
"Don Miller" <nospam@nospam.com> wrote in message
news:%23A4oAoHXEHA.1000@TK2MSFTNGP12.phx.gbl...
> Have a third-party XML (and can't change their content) that includes an
> internal DTD, e.g.
>
> <!DOCTYPE brochure [
> <!ENTITY mdash "--">
> ]>
>
> <brochure>
> <pageOneHeader>Page—One</pageOneHeader>
> ...
> </brochure>
>
> When I try to transform this type of XML with XSL to HTML (on a server
with
> ASP - snippet below), nothing happens.
>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output version="1.0" encoding="utf-8" omit-xml-declaration="yes"
> indent="no" media-type="text/html" />
> <xsl:template match="/">
> <html>
> <meta http-equiv="Content-Type" content="text/html;
> charset=UTF-8" />
> <head />
> <body>
> <xsl:for-each select="brochure">
> ...
> </xsl:for-each>
> ...
>
> Does anyone know what could be causing this behavior?
>
> Thanks.
>
>
|