[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Huge XML data files >> XSLT

Subject: RE: Huge XML data files >> XSLT
From: Américo Albuquerque <aalbuquerque@xxxxxxxxxxxxxxxx>
Date: Mon, 17 Feb 2003 10:47:12 -0000
troub sat
I think he ment what XSLT processor are you using (msxml, saxon,
xalan??) ?

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Jinesh Varia
Sent: Sunday, February 16, 2003 3:55 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Huge XML data files >> XSLT

I am using Linux, running on pentium 4, 1GB RAM.

Please help!!
Jinesh

--- XSL-List Digest <owner-xsl-list-digest@xxxxxxxxxxxxxxxxxxxxxx>
wrote:
> XSL-List Digest      Saturday, February 15 2003      Volume 04 :
Number 1084
> 
> 
> 
> In this issue:
> 
>      RE:  [XSLT2] setting context inside funcdefs
>      RE:  [XSLT2] setting context inside funcdefs
>      RE:  Reference to variable cannot be resolved.
>      RE:  Reference to variable cannot be resolved.
>      RE:  Adding/Coercing a Namespace
>      RE:  Re: Reference to variable cannot be resolved.
>       Re: Re: Reference to variable cannot be resolved.
>       Re: nxslt - .NET XSLT Command Line Utility
>       Re: Reference to variable cannot be resolved.
>      Re:  [XSLT2] setting context inside funcdefs
>      Re:  [XSLT2] setting context inside funcdefs
>      RE:  Wrapping consecutive similar elements inside a new pare
nt element
>      Re:  ANN: nxslt - .NET XSLT Command Line Utility
>      RE:  Re: Re: Reference to variable cannot be resolved.
>      RE:  Re: Reference to variable cannot be resolved.
>      RE:  [XSLT2] setting context inside funcdefs
>       Re: Re: Re: Reference to variable cannot be resolved.
>       Re: Re: Reference to variable cannot be resolved.
>       XSLT 2 and Invalid documents
>      RE:  Re: Reference to variable cannot be resolved.
>      Re:  XSLT 2 and Invalid documents
>      Re:  XSLT 2 and Invalid documents
>       Huge XML data files >> XSLT
>       Fwd: trouble with namespaces
>      RE: xslt core and intuition was RE:  Reference to variable c
annot be resolved.
>      Re:  Fwd: trouble with namespaces
>      Re:  Huge XML data files >> XSLT
>       updated namespace difficulty
>       Progress indicator in Xalan?
> 
> ----------------------------------------------------------------------
> 
> Date: Sat, 15 Feb 2003 08:05:00 -0000
> From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
> Subject: RE:  [XSLT2] setting context inside funcdefs
> 
> > Hi
> > 
> > Inside function definitions, is there a way to set the 
> > context to that 
> > of the function call, so that I can write "local-name()" etc?
> > 
> > Or should I pass in the context node as argument, in addition 
> > to all the 
> > local params visible to the function call.
> > Then I probably  would write s.th. like 
> > "local-name($callers_context-node)"; which is more typing ...
> > 
> 
> You should pass all the information the function needs (unless it's
> available as a global variable) in the arguments to the function call.
> 
> We banned passing the context implicitly because it prevents many
> optimizations. For example, if you're doing lazy evaluation, then you
> typically have to save all aspects of the context that an expression
> depends on. Saving the context "just in case" the function uses it is
> very expensive. It also means you can't move function calls out of
loops
> and predicates such as //a[f() = 2].
> 
> Michael Kay
> Software AG
> home: Michael.H.Kay@xxxxxxxxxxxx
> work: Michael.Kay@xxxxxxxxxxxxxx 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> ------------------------------
> 
> Date: Sat, 15 Feb 2003 08:08:30 -0000
> From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
> Subject: RE:  [XSLT2] setting context inside funcdefs
> 
> > 
> > I just got confused by the "initially" in
> > 
> >    "Within the body of a stylesheet function, the focus is initially
> >    undefined"
> > 
> > which seemed to imply the possibility of setting the focus/context, 
> > possibly to that of the function call.
> > 
> 
> Yes, I don't like the "initially" - I've generally tried to avoid
words
> in the spec that have a temporal connotation.
> 
> What it means is that you are allowed to write things like
> 
> <xsl:function...
> <xsl:variable...
>    <xsl:for-each select="$param">
> 
> and inside the for-each (or inside a predicate in a filter expression)
> the context item is well defined.
> 
> Michael Kay
> Software AG
> home: Michael.H.Kay@xxxxxxxxxxxx
> work: Michael.Kay@xxxxxxxxxxxxxx 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> ------------------------------
> 
> Date: Sat, 15 Feb 2003 08:11:06 -0000
> From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
> Subject: RE:  Reference to variable cannot be resolved.
> 
> > 
> > This is really horrible.
> > 
> > Why should a language support a practice that must be discouraged?
> > 
> 
> It's a bicycle-shed issue. The committee spent hours wrangling and
> agreed on a messy compromise that satisfies no-one.
> 
> Michael Kay
> Software AG
> home: Michael.H.Kay@xxxxxxxxxxxx
> work: Michael.Kay@xxxxxxxxxxxxxx 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> ------------------------------
> 
> Date: Sat, 15 Feb 2003 08:16:40 -0000
> From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
> Subject: RE:  Reference to variable cannot be resolved.
> 
> > 
> > The example given in the spec seems a bit misleading, because 
> > it really illustrates the restrictions of scope and not the 
> > practice of shadowing. The following is illegal in either spec:
> > 
> > <xsl:template match="/">
> >   <xsl:variable name="x" select="1"/>
> >   <xsl:variable name="x" select="$x+1"/>
> >   <xsl:value-of select="$x"/>
> > </xsl:template>
> > 
> 
> I regret to say that (unless I've missed something) the above is
> completely legal in XSLT 2.0.
> 
> I fought hard to disallow this, because I know how many beginners
> misunderstand variables, and lost. There are too many people steeped
in
> functional programming who can't see why it's a problem.
> 
> I'm sure the debate is one that will be revived during the public
> comments cycle - as I said, it's a bicycle shed issue.
> 
> Michael Kay
> Software AG
> home: Michael.H.Kay@xxxxxxxxxxxx
> work: Michael.Kay@xxxxxxxxxxxxxx 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> ------------------------------
> 
> Date: Sat, 15 Feb 2003 08:22:40 -0000
> From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
> Subject: RE:  Adding/Coercing a Namespace
> 
> I haven't understood the detail of your problem, but the general
> solution in XSLT 1.0 to adding a namespace that isn't statically known
> is:
> 
> <xsl:variable name="a">
>   <xsl:element name="p:dummy" namespace="{$param}"/.
> </xsl:variable>
> 
> <some-element>
>   <xsl:copy-of select="xx:node-set($a)//namespace::p"/>
> </some-element>
> 
> Michael Kay
> Software AG
> home: Michael.H.Kay@xxxxxxxxxxxx
> work: Michael.Kay@xxxxxxxxxxxxxx 
> 
> > -----Original Message-----
> > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> > Richard Lander
> > Sent: 14 February 2003 17:09
> > To: xsl-List@xxxxxxxxxxxxxxxxxxxxxx
> > Subject:  Adding/Coercing a Namespace
> > 
> > 
> >  Morning,
> 
=== message truncated ===


=====
-----------------------------------------------------------------
Jinesh Varia
Graduate Student, Information Systems
Pennsylvania State University
Email: jinesh@xxxxxxx
-----------------------------------------------------------------
'Self is the author of its actions.'

__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.