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

valid HTML via XT/XP and a ns statement in the stylesheet ta

Subject: valid HTML via XT/XP and a ns statement in the stylesheet tag
From: Ed Nixon <ed.nixon@xxxxxxxxxxxxxxxxx>
Date: Thu, 22 Oct 1998 19:07:19 -0400
xp stylesheet
James Clark posted some name-space syntax a month or so ago that, when inserted 
into the xml:stylesheet begin tag, generated a valid HTML document. My 
apologies but could someone please pass that along to me again. I'm trying what 
I think I remember in a small example with the latest version of XT and I'm 
getting name-space syntax inserted into the html tag rather than a DOCTYPE 
statement. For example here is one thing I've tried (unsuccessfully):

Given:
<?xml version="1.0" encoding="ISO-8859-1"?>
<collection>
        <a>aaa</a>
        <b>bbb</b>
        <c>ccc</c>
</collection>

and further given:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet
    xmlns:xsl="http://www.w3.org/TR/WD-xsl"
	xmlns:html="http://www.w3.org/TR/REC-html40/"
    result-ns=""
>

<xsl:template match="/">
	<html>
	<head><title>this is XSL!!!</title></head>
	<body>
		<xsl:process-children/>
	</body>
	</html>
</xsl:template>

<xsl:template match="collection">
        <p>
        <xsl:process select="b"/>
        <xsl:process select="a"/>
        <xsl:process select="c"/>
        </p>
</xsl:template>
</xsl:stylesheet>

I get:

<html xmlns:html="http://www.w3.org/TR/REC-html40/">
<head><title>this is XSL!!!</title></head>
<body><p>bbbaaaccc</p>
</body>
</html>

[Incidentally, the XT output contains no line breaks.] Obviously, this does not 
validate.

You'll probably recognize some aspects of the example from another thread 
running on this list.

Any help would be greatfully appreciated.				...edN


 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.