XSL for nested sql result

2006-07-18 Thread Zhu Di
hello all,   I need some advice for writing a xsl for a nested sql result. the source file is        test         111     11         1         0     

Re: XSL for nested sql result

2006-07-18 Thread Bertrand Delacretaz
On 7/18/06, Zhu Di <[EMAIL PROTECTED]> wrote: ... I need some advice for writing a xsl for a nested sql result. .. I think you will need to write a recursive template to do this, I have a few bookmarks about that at http://del.icio.us/bdelacretaz/xslt+recursion -Bertrand

Re: XSL for nested sql result

2006-07-18 Thread Toby
Zhu Di wrote: > > > test > > > 111 > > > 11 > > > 1 > > > 0 > > > > >

Re: XSL for nested sql result

2006-07-18 Thread [EMAIL PROTECTED]
> I need some advice for writing a xsl for a nested sql result. > the source file is > > > > test > > > 111 > > > 11 > > > 1 > > >

Re: XSL for nested sql result

2006-07-19 Thread Zhu Di
I had try Toby's solution, but still I only can get the result as /111. the recursion apply-template at least should return the last class_name, but why it still only catch the first one...   here is my code, with small modification on Toby's solution     < data>   

Re: XSL for nested sql result

2006-07-19 Thread Zhu Di
yes, I had add some test code inside , and found that the code inside if never been used. but the element sql:rowset are exist. quite strange...   2006/7/19, Zhu Di <[EMAIL PROTECTED]>: I had try Toby's solution, but still I only can get the result as /111. the recursi

Re: XSL for nested sql result

2006-07-19 Thread Toby
Did you define the sql: namespace in the stylesheet? Otherwise, use non-qualified element names: "rowset/row/rowset/row". Also / should be inside the if. Toby - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: XSL for nested sql result

2006-07-19 Thread Zhu Di
yes, I had define the namespace. and there is no big difference between the is inside or outside 2006/7/19, Toby <[EMAIL PROTECTED]>: Did you define the sql: namespace in the stylesheet?  Otherwise, usenon-qualified element names: "rowset/row/rowset/row". Also / should be inside the if.Toby