Subject: Re: [xsl] Frustrated with xxx:node-set From: Karl Stubsjoen <kstubs@xxxxxxxxx> Date: Wed, 1 Jun 2005 13:42:15 -0700 |
Ahhh... that would be my conclusion. I'm open to other ways of aggregating and summarizing data with xslt1.0 ... it is a must for me! On 6/1/05, David Carlisle <davidc@xxxxxxxxx> wrote: > > I changed the top of your stylesheet to use saxon 6's node-set extension > rather then MS's. > > I get the result below, no empty summary element, so perhaps there is a > bug in the processor you are using. > > David > > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:fx="http://icl.com/saxon"> > <xsl:output indent="yes"/> > > > > $ saxon sum.xml sum.xsl > <?xml version="1.0" encoding="utf-8"?> > <result xmlns:fx="http://icl.com/saxon"> > <foo> > <B code="FOO">red</B> > <B code="FOO">blue</B> > <B code="FOO">blue</B> > <B code="FOO">green</B> > </foo> > <bar> > <B code="BAR">green</B> > <B code="BAR">red</B> > <B code="BAR">green</B> > <B code="BAR">green</B> > <B code="BAR">blue</B> > </bar> > <foobar_summary> > <summary_for_foo> > <summary code="FOO" color="red">1</summary> > <summary code="FOO" color="blue">2</summary> > <summary code="FOO" color="green">1</summary> > </summary_for_foo> > <summary_for_bar> > <summary code="BAR" color="green">3</summary> > <summary code="BAR" color="red">1</summary> > <summary code="BAR" color="blue">1</summary> > </summary_for_bar> > </foobar_summary> > <foo> > <B code="FOO">green</B> > <B code="FOO">blue</B> > <B code="FOO">red</B> > <B code="FOO">green</B> > <B code="FOO">green</B> > <B code="FOO">green</B> > <B code="FOO">green</B> > </foo> > <bar> > <B code="BAR">green</B> > <B code="BAR">green</B> > <B code="BAR">green</B> > <B code="BAR">blue</B> > <B code="BAR">blue</B> > </bar> > <foobar_summary> > <summary_for_foo> > <summary code="FOO" color="green">5</summary> > <summary code="FOO" color="blue">1</summary> > <summary code="FOO" color="red">1</summary> > </summary_for_foo> > <summary_for_bar> > <summary code="BAR" color="green">3</summary> > <summary code="BAR" color="blue">2</summary> > </summary_for_bar> > </foobar_summary> > </result> > > > ________________________________________________________________________ > This e-mail has been scanned for all viruses by Star. The > service is powered by MessageLabs. For more information on a proactive > anti-virus service working around the clock, around the globe, visit: > http://www.star.net.uk > ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Frustrated with xxx:node-, David Carlisle | Thread | Re: [xsl] Frustrated with xxx:node-, Dimitre Novatchev |
[xsl] Saxon for windows?, Karl Stubsjoen | Date | Re: [xsl] Frustrated with xxx:node-, Dimitre Novatchev |
Month |