RE: how to close html tags : link, meta,...
2003-08-13 00:54:29
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...
here is a part of my xslt code :
<xsl:text disable-output-escaping="yes"><?xml
version="1.0"?> </xsl:text>
<xsl:text disable-output-escaping="yes"><?xml-stylesheet
type="text/xsl"
href="http://www.w3.org/Math/XSL/mathml.xsl"?> </xsl:te
xt> <html>
This is defaulting to use the html output method. On the other hand, the
fact that you're trying to output an XML declaration suggests you are
actually trying to get XML output. Decide which you want, and use an
xsl:output declaration to specify it.
Then use the other attributes of xsl:output to get your XML declaration
- writing it as text with disable-output-escaping is plain wrong.
Similarly, use xsl:processing-instruction to output the
<?xml-stylesheet?> PI.
<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
It's serializing as HTML rather than XML, because the first element in
the result tree is an <html> element.
Michael Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- how to close html tags : link, meta,..., Myriam Delperier
- RE: how to close html tags : link, meta,..., Julian Reschke
- Re: how to close html tags : link, meta,..., Mukul Gandhi
- RE: how to close html tags : link, meta,...,
Michael Kay <=
- Re: how to close html tags : link, meta,..., David Carlisle
- RE: how to close html tags : link, meta,..., Andrew Welch
- RE: how to close html tags : link, meta,..., Andrew Welch
- RE: how to close html tags : link, meta,..., Andrew Welch
- RE: how to close html tags : link, meta,..., Andrew Welch
|
Previous by Date: |
Re: how to close html tags : link, meta,..., Mukul Gandhi |
Next by Date: |
character transformation., Paul Barclay |
Previous by Thread: |
Re: how to close html tags : link, meta,..., Myriam Delperier |
Next by Thread: |
Re: how to close html tags : link, meta,..., David Carlisle |
Indexes: |
[Date]
[Thread]
[Top]
[All Lists] |
|
|