Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

move an element to top

 
rick collette
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
the following is a well-formed xhtml file:
<td>
<input type="text" name="n1" value="v1"/>
<input type="text" name="n2" value="v2"/>
<input type="text" name="n3" value="title"/>
</td>
I want to transform it into a plain text file such as:
title
v1
v2
That means I need to move third element to the top,
how can I do it? It took a long while with no answer.
regards
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would <xsl:sort/> do the trick?
 
Hari Vignesh Padmanaban
Ranch Hand
Posts: 578
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes lasse, it would
here is teh code

Hope this helps
hari
 
rick collette
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, guys.

I modified DOM code, and it works fine now.
regards,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic