|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Adding structure to a flat xml
Hello, I cannot solve following problem: source: <root> <row> <entry name="a">xxx</entry> <entry name="b"></entry> <row> <row> <entry name="a">xxx</entry> <entry name="b">module</entry> <row> <row> <entry name="a">xxx</entry> <entry name="b">yyy</entry> <row> <row> <entry name="a">xxx</entry> <entry name="b">yyy</entry> <row> <row> <entry name="a">xxx</entry> <entry name="b">module</entry> <row> <row> <entry name="a">xxx</entry> <entry name="b">yyy</entry> <row> <row> <entry name="a">xxx</entry> <entry name="b">yyy</entry> <row> ..... </root> and get output: <root> <row> <entry name="a">xxx</entry> <entry name="b"></entry> <row> <module> <row> <entry name="a">xxx</entry> <entry name="b">module</entry> <row> <row> <entry name="a">xxx</entry> <entry name="b">yyy</entry> <row> <row> <entry name="a">xxx</entry> <entry name="b">yyy</entry> <row> </module> <module> <row> <entry name="a">xxx</entry> <entry name="b">module</entry> <row> <row> <entry name="a">xxx</entry> <entry name="b">yyy</entry> <row> <row> <entry name="a">xxx</entry> <entry name="b">yyy</entry> <row> ..... </module> </root> ie. i need to "wrap" all rows to element module starting module node when a row with entry/[@name='b']/text()='module'. 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








