|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Grouping problem persists
Hi all, I was unable to get following grouping to work: Source (from Excel/VB): <list> <row num=" 4 "> <entry name="sp_code"></entry> <entry name="sn_from"></entry> <entry name="sn_to">-</entry> <entry name="picture">MODULE:</entry> <entry name="qty"></entry> </row> <row num=" 5 "> <entry name="sp_code">2000402</entry> <entry name="sn_from"></entry> <entry name="sn_to">-</entry> <entry name="picture">01_001_e.cgm</entry> <entry name="qty"></entry> </row> <row num=" 6 "> <entry name="ID">5</entry> <entry name="sp_code">5210558</entry> <entry name="sn_from"></entry> <entry name="sn_to">-</entry> <entry name="picture">01_001_e.cgm</entry> <entry name="qty">2</entry> </row> .... <row num=" 35 "> <entry name="sp_code"></entry> <entry name="sn_from"></entry> <entry name="sn_to">-</entry> <entry name="picture">MODULE:</entry> <entry name="qty"></entry> </row> ... </list> What I need is structured output like: <list> <module> <row num=" 4 "> <entry name="sp_code"></entry> <entry name="sn_from"></entry> <entry name="sn_to">-</entry> <entry name="picture">MODULE:</entry> <entry name="qty"></entry> </row> <row num=" 5 "> <entry name="sp_code">2000402</entry> <entry name="sn_from"></entry> <entry name="sn_to">-</entry> <entry name="picture">01_001_e.cgm</entry> <entry name="qty"></entry> </row> <row num=" 6 "> <entry name="ID">5</entry> <entry name="sp_code">5210558</entry> <entry name="sn_from"></entry> <entry name="sn_to">-</entry> <entry name="picture">01_001_e.cgm</entry> <entry name="qty">2</entry> </row> ... </module> <module> <row num=" 35 "> <entry name="sp_code"></entry> <entry name="sn_from"></entry> <entry name="sn_to">-</entry> <entry name="picture">MODULE:</entry> <entry name="qty"></entry> </row> ... </module> </list> So, every row-node containing entry of type "picture" with text content of "MODULE:" would start a new "module" in output I'm using Saxon 6.2.2 Thanks in advance, Martti XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








