[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] vs
Subject: Re: [xsl] <empty /> vs <empty></empty?
From: drkm <darkman_spam@xxxxxxxx>
Date: Mon, 12 Dec 2005 14:19:14 +0100 (CET)

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 
Tilichargez cette version sur http://fr.messenger.yahoo.com


Current Thread