xsl-list
[Top] [All Lists]

Re: [xsl] Sorting and grouping unknown elements

2007-09-25 03:23:06
Thanks for all the help guys. But since I'm writing this I'm faced
with a small follow-up problem:

If my xml looks like this:

<rowset>
 <cvr>
   <name>Tesco</name>
   <model>Supermarket</model>
   <color>White</color>
 </cvr>
 <row>
   <make>Toyota</make>
   <model>Yaris</model>
   <color>Red</color>
 </row>
 <row>
   <make>Toyota</make>
   <model>Corolla</model>
   <color>Blue</color>
 </row>
</rowset>


Then I would only get the <make> elements from my <row> elements using
the xslt 1.0 suggested solution. Model and color is not processed (at
least not the way I expect it). Any quick solution around this?

Thanks in advance :-)

Claus Jessing

On 9/24/07, Claus Jessing <claus(_at_)jessing(_dot_)dk> wrote:
On 9/24/07, David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:

. I'm using javax.xml.transform
That is you are using xalan which is an XSLt 1 processor so the XSLt2
solution won't work.

Kind of figured that out. But as long as the 1.0 solution works I'm happy :-)



--
Claus Jessing, jessing.dk
---------------------------------------------
M: +45 6061 0101, P: +45 4461 0101
E: claus(_at_)jessing(_dot_)dk, IM: claus(_at_)jessing(_dot_)dk



-- 
Claus Jessing, jessing.dk
---------------------------------------------
M: +45 6061 0101, P: +45 4461 0101
E: claus(_at_)jessing(_dot_)dk, IM: claus(_at_)jessing(_dot_)dk

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--