W3C home > Mailing lists > Public > xsl-editors@w3.org > July to September 1999

Re: handling of "empty" tags

From: James Clark <jjc@jclark.com>
Date: Wed, 07 Jul 1999 14:47:03 +0700
Message-ID: <378305F7.90EF18E6@jclark.com>
To: Justin Starren <starren@columbia.edu>
CC: xsl-editors@w3.org
  <outputtag value="whatever"></outputtag>

and

 <outputtag value="whatever/>

are equivalent in XML and are not distguished by standard APIs such as
SAX and the DOM nor by the Infoset.

Justin Starren wrote:
> 
> I have been testing two xslt translators, the ibm lotusxsl and ixslt.
> both of these frequently converty empty tags  into full tags.  The code
> 
> <xsl:template match="mytag">
>     <outputtag value="whatever"/>
> </xsl:template>
> 
> produces the ouput
> 
> <outputtag value="whatever"></outputtag>
> 
> Is this part of the spec?  If so, it is a big problem.  There must be a
> way to force output tags to be empty.
Received on Wednesday, 7 July 1999 07:42:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:49 GMT