Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: "Constant" xml transformation

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 4/5/2005 1:31:00 PM

radek jedrasiak wrote:


> i'm looking for a way to speed up a xslt transformation.
> 
> Input.xml looks something like:
> 
> <Input>
>     <E i="1" a1="1" a2="2" />
>     <E i="2" a1="1" a2="2" />
> </Input>
> 
> the desired output FILES are:
> 
> <Output1>
>     <E i="1" a1="1" />
>     <E i="2" a1="1" />
> </Output1>
> 
> AND
> 
> <Output2>
>     <E i="1" a2="2" />
>     <E i="2" a2="2" />
> </Output2>
> 
> (The files contain a different SET of attributes)
> 
> Well, what i already have is an parametrised xslt which generates those "excerpts".
> I just thought that using a XSLT for this kind of job
> (the real input files are about 40Kb and have to be transformed several times per second)
> is probably not the most efficient way to do it.
> 
> I'm looking for creative ways to eighter reformulate the xslt
> or a completly different approach to splitt those files (regexp?)

If an XSLT transformation consumes to many resources you could try an 
XmlTextReader and while you pull in the contents with the Read method 
you give out the content as needed with one or two XmlTextWriters. It 
will consume less resources but is more work.

-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent