|
Subject: Re: [xsl] Concatenating a nodeset (set of attributes) From: Dimitre Novatchev <dnovatchev@xxxxxxxxx> Date: Mon, 10 Oct 2005 05:59:39 +1000 |
Hi Ragulf.
I will need to find some free time to look into the problem, now I
have a source xml for it.
As for the speed of System.Xml.Xsl.XslTransform, do have a look at the
implementation of XslCompiledTransform in .NET Framework 2.0
http://blogs.msdn.com/xmlteam/archive/2005/09/30/475922.aspx
To quote this article:
"XslCompiledTransform compiles XSLT stylesheets to Microsoft
Intermediate Language (MSIL) methods and then executes them. Execution
time of the new processor is on average 4 times better than
XslTransform and matches the speed of MSXML, the native XML processor.
"
--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
On 10/9/05, Ragulf Pickaxe <ragulf.pickaxe@xxxxxxxxx> wrote:
> Hi Dimitre,
>
> Well, below is a closer example to the real thing. Is this what you meant?
>
> I have looked at your solution in the link that you provided me with.
> Do you have any tests on the speed of this sorting?
>
> The reason I am doing this sorting in the first place is because I
> have a multiple transformation with all but the last step taking less
> than 3 seconds, but with the last taking more than 100 seconds (timing
> out the web service). I have a complicated shuffling and sorting in
> the last stylesheet with 7 keys to match different things. (I miss the
> speed of MSXSL 3.0/4.0 compared to .NET's XSL transform which I
> estimate is an order of magnitude slower on many operations).
>
> I am trying to do some of the sorting in previous transformations so
> that I will not need to sort so much in the last transformation.
>
> Regards,
> Ragulf Pickaxe :-)
>
> <?xml version="1.0"?>
> <ROOT>
> <TOC name="Somename">
> <STRUC pos="3" title="sometitle"><STRUC pos="1"
> title="Another"></STRUC> </STRUC>
> <STRUC pos="3" title="sometitle"><STRUC pos="4"
> title="Another"></STRUC> </STRUC>
> <STRUC pos="2" title="sometitle"><STRUC pos="1"
> title="Another"></STRUC> </STRUC>
> <STRUC pos="3" title="sometitle"><STRUC pos="2"
> title="Another"></STRUC> </STRUC>
> <STRUC pos="2" title="sometitle"><STRUC pos="3"
> title="Another"></STRUC> </STRUC>
> <STRUC pos="3" title="sometitle"><STRUC pos="6"
> title="Another"></STRUC> </STRUC>
> </TOC>
> <TOC name="another name">
> <STRUC pos="1" title="sometitle"><STRUC pos="1"
> title="Another"></STRUC> </STRUC>
> <STRUC pos="1" title="sometitle"></STRUC>
> <STRUC pos="2" title="sometitle"><STRUC pos="1"
> title="Another"></STRUC> </STRUC>
> <STRUC pos="3" title="sometitle"><STRUC pos="2"
> title="Another"></STRUC> </STRUC>
> <STRUC pos="2" title="sometitle"><STRUC pos="3"
> title="Another"></STRUC> </STRUC>
> <STRUC pos="3" title="sometitle"><STRUC pos="6"
> title="Another"></STRUC> </STRUC>
> <STRUC pos="3" title="sometitle"><STRUC pos="6"
> title="Another"></STRUC><STRUC pos="1" title="Yet another"></STRUC>
> </STRUC>
> <STRUC pos="3" title="sometitle"><STRUC pos="6"
> title="Another"></STRUC><STRUC pos="1" title="Yet another"></STRUC>
> </STRUC>
> </TOC>
> </ROOT>
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Concatenating a nodeset (, Ragulf Pickaxe | Thread | Re: [xsl] Concatenating a nodeset (, Ragulf Pickaxe |
| Re: [xsl] Concatenating a nodeset (, Ragulf Pickaxe | Date | [xsl] Announce: Unit Testing Framew, Jacek Radajewski |
| Month |