xsl-list
[Top] [All Lists]

XSL to write XML tag values in columns

2003-12-23 13:41:10
Hi all..

I have an XML like this:

<test>
  <ROW>
    <f_key>1</f_key>
    <field>blabla</field>
  </ROW>
  <ROW>
    <f_key>1</f_key>
    <field>bleble</field>
  </ROW>
  <ROW>
    <f_key>2</f_key>
    <field>blibli</field>
  </ROW>
  <ROW>
    <f_key>2</f_key>
    <field>bloblo</field>
  </ROW>
</test>

I want that to be shown this way:

1           2
blabla     blibli
bleble     bloblo

Using muenchian method I could achieve:

1           2
blabla     bleble
blibli     bloblo

what I was not wanting.

Long time ago someone suggested me a way to do it and it worked, by using 
mode="row" in XSL but I don't remember exactly how can I use it.

Thanks
Jaime

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



<Prev in Thread] Current Thread [Next in Thread>