This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Microsoft XML > June 2004 > Re: XSL Trouble using XML w internal Entities - Never Mind





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: XSL Trouble using XML w internal Entities - Never Mind
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.
>
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews