Subject: RE: centralised alphabetical order for distributed content
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Tue, 23 Mar 2004 16:42:22 +0200
|
Hi,
If you're using Xalan, you can combine the 30 documents into a one Result Tree Fragment and then use the node-set() extension function to cast that into a node-set. Remember to strip all the whitespace to keep the size of the node-set as small as possible. Then, just use the normal key-based approach to go through the links in the node-set, just remember that the current node is one of the nodes in the node-set.
Cheers,
Jarno - Xorcist: Anima
> -----Original Message-----
> From: ext james walker [mailto:jameswalkerandy@xxxxxxxxxxx]
> Sent: 23 March, 2004 12:09
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE: centralised alphabetical order for distributed
> content
>
>
>
> Re posting as i am stil stuck.......
> Is it possible to write xslt which will create one key across
> 30 files on a
> xalan server (not sure what sax streams are)?
>
>
>
> >From: "james walker" <jameswalkerandy@xxxxxxxxxxx>
> >Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> >To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> >Subject: RE: centralised alphabetical order for
> distributed content
> >Date: Mon, 22 Mar 2004 13:44:34 +0000
> >
> >I am performing the translations on a servlet which i cant control
> >unfornately, it is based on a xalan server. Also when i
> tried to use a
> >union operator to include all 30 files, for some reason it
> broke after 27
> >files ( i am guessing that has something to do with the
> server dedicating a
> >limited amount of memory for a translation). Is it possible
> to write xslt
> >which will create one key across 30 files on a xalan server
> (not sure what
> >sax streams are)?
> >
> >cheers
> >james
> >
> >
> >>From: <Jarno.Elovirta@xxxxxxxxx>
> >>Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> >>To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> >>Subject: RE: centralised alphabetical order for
> distributed content
> >>Date: Mon, 22 Mar 2004 15:33:38 +0200
> >>
> >>Hi,
> >>
> >> > However, i can only create a key for one file. Is it possible
> >> > to create one
> >> > key for all 30 files? Or would it be easier to somehow gather
> >> > all info from
> >> > 30 files and then create a key from that?
> >>
> >>Depends on your environment: if you're already calling the
> transformation
> >>e.g. from your own Java code, shouldn't be too difficult to
> gather the SAX
> >>streams from multiple document into one that's fed to the
> Transformer.
> >>Also, if you combine the documents outside the XSLT
> process, you could
> >>also generate a link/@key attribute that has already been
> converted to
> >>lowercase to make sorting easier.
> >>
> >>Cheers,
> >>
> >>Jarno - The Cure: Open
>>
>
>_________________________________________________________________
>Stay in touch with absent friends - get MSN Messenger
>http://www.msn.co.uk/messenger
>
_________________________________________________________________
Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo
|