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

doctype on HTML document with xt and saxon

Subject: doctype on HTML document with xt and saxon
From: Sebastian Rahtz <sebastian.rahtz@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 3 Dec 1999 17:29:00 +0000 (GMT)
saxon doctype
Am I being very dense? Given this stylesheet:

<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  version="1.0"
  xmlns:xt="http://www.jclark.com/xt"
  xmlns:saxon="http://icl.com/saxon"
  extension-element-prefixes="saxon xt">

<xsl:output method="html"  
 doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN"/>

<xsl:template match="/">
 <html><xsl:apply-templates/></html>
</xsl:template>

</xsl:stylesheet>

I expect to see a DOCTYPE before the <html>. When I run xt, I get

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <html xmlns:saxon="http://icl.com/saxon">

and when I get saxon I get 

<html>

Neither of which is what I wanted...

Is this a bug in Saxon, or my stylesheet? is the xmlns: in the xt
output a bug in XT?

Under some circumstances which I have not yet pinned down, saxon gives no
output whatsoever. Of course, the stylesheets work with xt, but I
cannot work out whether its because xt was forgiving my bad
stylesheets, or saxon has a bug.... oh well, I'll try to get a minimal 
case. But in the meanwhile, the DOCTYPE above???

Sebastian


 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.