xsl-list
[Top] [All Lists]

Re: <empty /> vs <empty></empty?

2005-12-12 06:19:14
Eric Scheid wrote:

On 12/12/05 9:21 PM, "drkm" wrote:

    <xsl:template match="/"><html><br/></html></xsl:template>

what happens with <div></div> or <a name="foo"></a>?

    ~/drafts/xslt $ cat empty.xsl 
    <xsl:transform
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
        version="1.0">
      <xsl:output method="html"/>
      <xsl:template match="/">
        <html>
          <body>
            <br/>
            <div/>
            <a name="foo"/>
          </body>
        </html>
      </xsl:template>
    </xsl:transform>
    ~/drafts/xslt $ xalan -XSL empty.xsl -IN empty.xsl
    <html>
    <body>
    <br>
    <div></div>
    <a name="foo"></a>
    </body>
    </html>
    ~/drafts/xslt $ 

--drkm



















        

        
                
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--