Re: [xsl] Using !ENTITY to include html

Subject: Re: [xsl] Using !ENTITY to include html
From: "Michael Beddow" <mbnospam@xxxxxxxxxxx>
Date: Wed, 29 Aug 2001 09:49:14 +0100
On Wednesday, August 29, 2001 4:47 AM
dante wrote:

[...]

> <!DOCTYPE xsl:stylesheet [
> <!ENTITY nbsp       "&#160;"   >
> <!-- declares title.html as an external parsed entity -->
> <!ENTITY title SYSTEM "title.html">
> ]>

[...]

> <xsl:template match="/">
>     <html>
>         <head>
>              <title>&title;</title>

What you're trying to do seems a bit strange. Are you really wanting to
insert an entire html document as the element content of a <title> in
XHTML?

But that aside, you need to check exactly where in the server-side
filesystem the Axkit components look when you ask them to resolve a
SYSTEM entity by filename alone., then make sure that your title.html is
in that location. There's quite a bit of variouation between XSLT
processors and platforms on this, and my guess is that's your problem.

Michael
---------------------------------------------------------
Michael Beddow   http://www.mbeddow.net/
XML and the Humanities page:  http://xml.lexilog.org.uk/
---------------------------------------------------------



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread