[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: attribute order

Subject: Re: attribute order
From: Peter Davis <pdavis152@xxxxxxxxx>
Date: Thu, 21 Feb 2002 11:33:45 -0800
alphabetize xml attributes
On Thursday 21 February 2002 08:45, Andy Joslin wrote:
> 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">

It was my experience that processors that change the order tend to 
alphabetize the attributes, or, if the processor happens to store the 
attributes in a hash-map of some kind, seemingly random order.  Have you 
tried if rearranging the attribute-set has the same effect in the output?

>
> though I agree that the order isn't really that significant
>
>
> cheers
>
>
> Andy
>
>
> -----Original Message-----
> From: David Carlisle [mailto:davidc@xxxxxxxxx]
> Sent: 21 February 2002 16:18
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  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

-- 
Peter Davis
All the simple programs have been written.

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.