|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Newbie in XSL: How can I switch the position of two columns?
Hello there,
I am new in XML/XSL programming and I am having trouble trying to switch two columns from their original position in XML. In other words, suppose I have this table in the original XML file: col1 col2 col3 ... c11 c21 c32 ... c21 c22 c32 ... ... I would like to get this in the final HTML: col1 col3 col2 ... c11 c31 c22 ... c21 c32 c22 ... ... i.e. switch column2 and column3. I am using the position() funtion but I can only read its values, not set them. Or can I? Any ideas? Thanks |
|
#2
|
|||
|
|||
|
Newbie in XSL: How can I switch the position of two columns?
Store the value of position to a variable
<xsl:variable name="pos" select="position()" /> |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Newbie in XSL: How can I switch the position of two columns? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|