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

RE: how to close html tags : link, meta,...

Subject: RE: how to close html tags : link, meta,...
From: "Julian Reschke" <julian.reschke@xxxxxx>
Date: Wed, 13 Aug 2003 09:40:22 +0200
close html
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Myriam
> Delperier
> Sent: Wednesday, August 13, 2003 9:29 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  how to close html tags : link, meta,...
> hi,
> i'm using xslt to transform an xml file into a html file
> my problem is that i really need to have the empty tags( meta, link,
> img,...) closed and I don't know how to do this...

In which case you shouldn't transform to HTML. Use the "xml" output method:

<xsl:output method="xml" />

> here is a part of my xslt code :
> <xsl:text disable-output-escaping="yes">&lt;?xml
> version="1.0"?&gt;&#10;</xsl:text>
> <xsl:text disable-output-escaping="yes">&lt;?xml-stylesheet 
> type="text/xsl"
> href="http://www.w3.org/Math/XSL/mathml.xsl"?&gt;&#10;</xsl:text> <html>

Don't do that.

- the XML declaration is produced automatically anyway
- produce the PU using xsl:processing-instruction
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
> <link rel="stylesheet" type="text/css" href="{$cssFile}"/>
> <link rel="stylesheet" type="text/css" href="css/structure.css"/>
> <link rel="stylesheet" type="text/css" href="css/{$inst}.css"/>
> <link rel="stylesheet" type="text/css" href="../{$code}.css"/>
> <title>CyberDocs</title>
> </head>
> <body>
> which produces non-closed tags

Which is fine as far as HTML is concerned.


<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760 

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

Current Thread


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.
First Name
Last Name
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.