Subject: Re: [xsl] Understanding why <tag></tag> is the way it is (was Re: [xsl] IE Client side transformation issue) From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Fri, 03 Aug 2007 21:49:03 -0400 |
On 03/08/07, G. Ken Holman <gkholman@xxxxxxxxxxxxxxxxxxxx> wrote: > t:\ftemp>xslt-msxsl manfred.xsl manfred.xsl con > <body> > <div style="display: none"></div> > <div style="display: none"></div> > </body> In my test the last div is serialized as <div style="display: none" /> !
> Why do you think the serialization by MSXML of the two is the same? My turn, sure.
I've set up a test at...
Thinking about possible causes, what version of MSXML do you use?
t:\ftemp>type manfred.xsl <?xml version="1.0" encoding="US-ASCII"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/"> <body> <div style="display: none"></div> <div style="display: none"/> </body> </xsl:template>
t:\ftemp>xslt-msxsl manfred.xsl manfred.xsl con <body> <div style="display: none"></div> <div style="display: none"></div> </body>
t:\ftemp>type manfred3.xsl <?xml version="1.0" encoding="US-ASCII"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
<xsl:template match="/"> <body> <div style="display: none"></div> <div style="display: none"/> </body> </xsl:template>
t:\ftemp>xslt-msxsl manfred3.xsl manfred3.xsl con <body xmlns="http://www.w3.org/1999/xhtml"> <div style="display: none"></div> <div style="display: none"/> </body>
-- Upcoming public training: XSLT/XSL-FO Sep 10, UBL/code lists Oct 1 World-wide corporate, govt. & user group XML, XSL and UBL training RSS feeds: publicly-available developer resources and training G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Jul'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Understanding why <tag></, Manfred Staudinger | Thread | Re: [xsl] Understanding why <tag></, Manfred Staudinger |
Re: [xsl] Issue with entities in XM, David Carlisle | Date | Re: [xsl] translate to XML using XS, oryann9 |
Month |