Re: handling of "empty" tags

  <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 UTC