[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|