[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Using !ENTITY to include html

Subject: Re: Using !ENTITY to include html
From: "cutlass" <cutlass@xxxxxxxxxxx>
Date: Wed, 29 Aug 2001 08:32:14 +0100
include html in xsl
axkit is being adopted by the apache mission, but i also believe that Matt S
of AxKit is migrating servers, or doing something with hardware at the
moment.

as for your problem, i am pretty certain its axkit based, or could be
related to Sablotron.

have u tried setting your xsl:output method=html ?

cheers, jim

----- Original Message -----
From: "dante" <dante@xxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, August 29, 2001 4:47 AM
Subject:  Using !ENTITY to include html


> G'Day all,
>
> I've been trying to use the following code in the beginning of my XSL to
add
> some html to my output document:
>
> ----------------------------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!DOCTYPE xsl:stylesheet [
> <!ENTITY nbsp       "&#160;"   >
> <!-- declares title.html as an external parsed entity -->
> <!ENTITY title SYSTEM "title.html">
> ]>
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns="http://www.w3.org/1999/xhtml" version="1.0">
>
> <xsl:output method="xml" media-type="text/html" omit-xml-declaration="yes"
> indent="yes"
> doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
> doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" encoding="UTF-8"
/>
>
> <xsl:template match="/">
>     <html>
>         <head>
>              <title>&title;</title>
> etc.
> ----------------------------------------------------------
>
> This works fine using the MSXML parser, but when I've tried server-side
> parsing with Axkit I'm not getting the entity added - just a space.
>
> There is no error showing in the Apache error.log -
> Apache::AxKit::Language::Sablot::handler seems to be working fine.
>
> Is it AxKit or XML::Sablotron that's causing the problem?
>
> Or is there a problem with my coding that the MSXML parser ignores & AxKit
> doesn't?
>
> Thanks,
>             Oliver Reid
>             Perth, Western Australia
>             dante@xxxxxxxxxxxxx
>             www.vianet.net.au/~dante
>
> p.s. Does anyone know what's been happening with the AxKit.org List &
Site?
>
> <tip type="DTD" author="Oliver Reid">
> I've found this very useful: http://www.pault.com/pault/dtdgenerator
> </tip>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.