I am looking to reverse in XSL/FO a for-each loop.

for instance the xml

<data>
  <record id="1"/>
  <record id="2"/>
  <record id="3"/>
  <record id="4"/>
  <record id="5"/>
  <record id="6"/>
</data>

with the xsl

<xsl:for-each select="descendant-or-self::*/record">
   <xsl:value-of select="@id"/>
</xsl:for-each>

I am looking for the output 654321 and not 123456

how is this possible?

Edit
Report