Subject: [xsl] Malformed META tag From: Gautam Sabba <gautams@xxxxxxxxxxxxxx> Date: Wed, 06 Feb 2002 17:02:39 +0530 |
Hi All, I'm a greenhorn at XSLT so please be gentle :). I'm working with MSXML 4 and VC++. I'm just trying to do a very simple x-formation (the customary Hello World!). The result of this x-formation i need as an object so i use the transformNodeToObject() method. Here it fails stating that the resulting DOM object is not in proper shape...the culprit being the <META> tag that get added to the x-formation result <META http-equiv="Content-Type" content="text/html; charset=UTF-16"> ...it has no tag closure. This occurs only if I have a <HEAD> tag defined as part of my xsl file. Is there some work-around for this ? Or am I going about this in the right way ? thanks in advance, gautam The XSL file : <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html" encoding="utf-8"/> <xsl:template match="/hello-world"> <HTML> <HEAD> <TITLE> This is the title </TITLE> </HEAD> <BODY> <H1><xsl:value-of select="greeting"/></H1> <xsl:apply-templates select="greeter"/> </BODY> </HTML> </xsl:template> <xsl:template match="greeter"> <DIV>from <I><xsl:value-of select="."/></I> </DIV> </xsl:template> </xsl:stylesheet> The XML file: <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="hello.xsl"?> <hello-world> <greeter>An XSLT Programmer</greeter> <greeting>Hello, World!</greeting> </hello-world> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Speed and memory problems, Michael Kay | Thread | Re: [xsl] Malformed META tag, Markus Spath |
Re: [xsl] Trouble with grouping, Jeni Tennison | Date | Re: [xsl] fo:table problem (using A, Joerg Pietschmann |
Month |