Subject: Re: [xsl] XSL Processing to avoid repetitions From: Andrew Welch <andrew.j.welch@xxxxxxxxx> Date: Wed, 16 Jun 2010 14:38:43 +0100 |
> So, I have these data > > <?xml version="1.0" encoding="UTF-8"?> > <Results> > <Row> > <CONTRACT>1000</CONTRACT> > <CODE>1000-1</CODE> > <NUMERO>110</NUMERO> > <STATE>0</STATE> > </Row> > <Row> > <CONTRACT>1000</CONTRACT> > <CODE>1000-1</CODE> > <NUMERO>567</NUMERO> > <STATE>0</STATE> > </Row> > <Row> > <CONTRACT>1000</CONTRACT> > <CODE>1000-1</CODE> > <NUMERO>936</NUMERO> > <STATE>0</STATE> > </Row> > <Row> > <CONTRACT>1000</CONTRACT> > <CODE>1000-2</CODE> > <NUMERO>110</NUMERO> > <STATE>0</STATE> > </Row> > <Row> > <CONTRACT>1000</CONTRACT> > <CODE>1000-2</CODE> > <NUMERO>567</NUMERO> > <STATE>0</STATE> > </Row> > <Row> > <CONTRACT>1000</CONTRACT> > <CODE>1000-2</CODE> > <NUMERO>936</NUMERO> > <STATE>0</STATE> > </Row> > <Row> > </Results> > > And I would like to reshape the data to get something clean (from CONTRACT, CODE and NUMERO) > 1000 > 1000-1 > 110 > 567 > 936 > 1000-2 > 110 > 567 > 936 For that just nest your xsl:for-each-group's, using select="current-group()" group-by="CODE" for the inner group. -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XSL Processing to avoid r, Fabien Tillier | Thread | Re: [xsl] XSL Processing to avoid r, Martin Honnen |
RE: [xsl] XSL Processing to avoid r, Fabien Tillier | Date | RE: [xsl] XSL Processing to avoid r, Fabien Tillier |
Month |