This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Speed and memory problems when transforming links
- From: Markus Spath <mspath at arcor dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 06 Feb 2002 09:27:18 +0100
- Subject: Re: [xsl] Speed and memory problems when transforming links
- References: <87adunktbq.fsf@columbus.localdomain>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hallo Andreas,
If you just want to generate a result as you described, you actually
don't need to merge in the phone file, since it doesn't add any information
(the id of the phone corresponds to the local link in the syllable file)
second hint: don't call xsl:for-each but use templates instead,
(ev. somebody will explain why ;) )
hope that helps a little
markus
Andreas Voegele wrote:
> Hi,
>
> I'd like to merge the contents of two linked XML files into on file
> but I have speed and memory problems with Saxon as well as Xalan.
>
> The first XML file contains syllables and links to the second file,
> which contains phones:
>
> <syllable_file>
> <syllable id="sllbl_0">
> <link href="phone.xml#phn_0" />
> <link href="phone.xml#phn_1" />
> </syllable>
> ...
> </syllable_file>
>
> <phone_file>
> <phone id="phn_0" />
> <phone id="phn_1" />
> ...
> </phone_file>
>
>
> The result looks like this:
>
> <syllable_phone_file>
> <syllable id="sllbl_0">
> <phone id="phn_0"/>
> <phone id="phn_1"/>
> </syllable>
> ...
> </syllable_phone_file>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list