xsl-list
[Top] [All Lists]

RE: empty attribute tags rendering in HTML

2006-02-27 12:25:49
Michael Kay wrote:

They're outputting all the attributes for every
instance of every tag, even though they're empty, as
in this example:

<a name="{(_at_)name}" href="{(_at_)href}" title="{(_at_)title}"
target="{(_at_)target}" class="{(_at_)class}" id="{(_at_)id}">

Change this to:

<a>
  <xsl:copy-of select="@*"/>

  Or to:

    <xsl:copy-of select="@*[not(. = '')]"/>

if the attributes are empty in the source tree.

  Regards,

--drkm





















        

        
                
___________________________________________________________________________ 
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs 
exceptionnels pour appeler la France et l'international.
Téléchargez 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>
--~--



<Prev in Thread] Current Thread [Next in Thread>