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]

Strange Sort...


Hello,

I have the following XML hierarchy:

<bucket>
	<object id="first" x="35" y="10" />
	<object id="second" x="15" y="58" />
	<subbucket>
		<object>
			<id>third</id>
			<x>28</x>
			<y>145</y>
		</object>
	</subbucket>
	<object id="fourth" x="65" y="27" />
</bucket>

Ok, enough with the funny looks.  I know that the use of id, x, and y should be consistent as either children or an attribute.  ; ).  But, this is what I'm dealing with now, until I can get it changed.

I'd like to be able to sort all four objects based on the value of their "y"s, regardless of whether they are a child or an attribute.  Is that possible?  Doing two sorts, with one being the major and the other the minor will not work.  I think it has to be in one xsl:sort.

Any help is greatly appreciated.

Thanks,
   Brian Young





 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]