This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: attribute order


thanks, this is working. 

the claim came from a client and they insisted on having the *correct*
order. I also don't believe that this makes any difference. In order to
convince them I am looking for a reference to proof it. Sorry this is not a
topic here, so if you have any reference to point to you can send it to me
directly.

Cheers

Meltem

-----Original Message-----
From: Andy Joslin [mailto:andy.joslin@ri3k.com]
Sent: Thursday, February 21, 2002 4:46 PM
To: xsl-list@lists.mulberrytech.com
Subject: RE: [xsl] attribute order


In my experience you can control the order using xsl-attribute-sets

e.g.

<xsl:attribute-set name="table580">
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="cellpadding">0</xsl:attribute>
<xsl:attribute name="cellspacing">0</xsl:attribute>
<xsl:attribute name="width">580</xsl:attribute>
</xsl:attribute-set>

results in..

<table border="0" cellpadding="0" cellspacing="0" width="580">

though I agree that the order isn't really that significant


cheers


Andy


-----Original Message-----
From: David Carlisle [mailto:davidc@nag.co.uk]
Sent: 21 February 2002 16:18
To: xsl-list@lists.mulberrytech.com
Subject: Re: [xsl] attribute order




> After an XSL transformation, the attributes in the HTML tags are
reordered.
> Any idea why this is happening and what can be done about it?

In both XML and HTML the ordering of attributes is insignificant.
You can not control this from XSLT, any more than you can control whether
" or ' is used around the value.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]