LISTSERV mailing list manager LISTSERV 16.0

Help for XML-L Archives


XML-L Archives

XML-L Archives


XML-L@LISTSERV.HEANET.IE


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

XML-L Home

XML-L Home

XML-L  October 2000

XML-L October 2000

Subject:

Re: Passing parameters to xsl from jsp

From:

Priya Pinto <[log in to unmask]>

Reply-To:

General discussion of Extensible Markup Language <[log in to unmask]>

Date:

Tue, 3 Oct 2000 12:23:08 -0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (102 lines)

Thanks for the response!

I think I'll just parse the whole XML file and search for whatever is required!!

Priya

------------- Original Message --------------
Joshua Allen <[log in to unmask]> wrote:
To:"[log in to unmask]" <[log in to unmask]>,
       [log in to unmask], [log in to unmask]
From:Joshua Allen <[log in to unmask]>
Date:Sat, 30 Sep 2000 16:15:49 -0700
Subject: RE: Passing parameters to xsl from jsp

I'm not an expert, but some things to consider:

* Are you sure you need XSLT for this?  It seems that you could just store
the DOM and call an XPath query against the DOM.  In that case you would
simply need to capture the query from the post in JSP and use that to
construct your XPath query.

* A DOM loaded into memory is very much like a hashtable or dictionary
object that you might use for similar purposes.  Keep in mind that a
hashtable, dictionary, or DOM (all of which would let you quickly look for a
particular piece of data very quickly) will all eat up a large chunk of RAM.
In fact, even if you were thinking of some way that XSLT can help you, most
XSLT processors (including Apache Xalan AFAIK) will load the full file in
memory when processing.  So I guess what I am saying is that if you are
going to have to represent the entire data structure in-memory anyway, you
should be careful that you are not using XML "just because".  Other
in-memory structures may be more efficient.

* If, however, you are more interested in using this as a database in the
more traditional sense, and do not wish to have the entire XML document
loaded into RAM constantly, you could think about another approach.  One
simple technique is to use some abstraction layer that maps between
relational and XML data.  Of course, you would need to run some relational
database software on your box, and if you are going the open-source route I
am not an expert on what mapping tools exist.  I bet there is something that
works well with postgres, and of course you could download DB2 or Oracle,
which both have XML adapters.

* Now if your query requirements are simple and not as rich as a full
relational database allows, and you *still* do not want to read the whole
file into memory, I can think of some options.  First, you could check the
SAX API.  I am pretty sure you get that with Xerces, and undoubtedly you can
get it *somewhere* free.  Otherwise, try grep :-)


> -----Original Message-----
> From: Priya Pinto [mailto:[log in to unmask]]
> Sent: Friday, September 29, 2000 11:38 PM
> To: [log in to unmask]; [log in to unmask];
> [log in to unmask]
> Subject: Passing parameters to xsl from jsp
>
>
> I'm using an XML file as database and I need to be able to
> search for a particular text node in it based on the users
> search input.
>
> Ideas to proceed
> 1) When the user enters the search phrase and clicks on
> search, call a jsp which takes the input and then calls the
> respective file with another xsl (how do I do this? do I
> parse the file and rewrite it with a diff xsl?)where the
> value is passed as a parameter and it displays only that set of nodes.
>
> 2)When the user enters the search phrase and clicks on
> search, I use a jsp file to accept the  parameter and then
> call the xml file parse it and extract the nodes required and
> display it on the screen.
>
> Do tell me which is a better option and how to go about it?
>
> Or if there is any better way to go about this?
>
> I'm working on a Linux platform, with Apache, Tomcat, JSP, XML.
>
> Thanks
>
> Priya
>
> _________________________________________________
> Get Your Free Email At, http://www.rediffmail.com
>
> For fabulous shopping deals visit:
> http://www.rediff.co.in/shopping/index.html
>
>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


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

_________________________________________________
Get Your Free Email At, http://www.rediffmail.com

For fabulous shopping deals visit: http://www.rediff.co.in/shopping/index.html

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

February 2017
August 2016
June 2016
March 2016
January 2016
July 2014
April 2014
January 2014
July 2013
February 2013
September 2012
August 2012
October 2011
August 2011
June 2011
January 2011
November 2010
October 2010
July 2010
June 2010
March 2010
February 2010
January 2010
November 2009
September 2009
August 2009
July 2009
May 2009
March 2009
December 2008
October 2008
August 2008
May 2008
March 2008
February 2008
January 2008
December 2007
October 2007
August 2007
June 2007
March 2007
January 2007
December 2006
September 2006
July 2006
June 2006
April 2006
February 2006
January 2006
November 2005
September 2005
August 2005
July 2005
June 2005
May 2005
March 2005
January 2005
October 2004
August 2004
July 2004
June 2004
May 2004
March 2004
February 2004
January 2004
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
January 2001
December 2000
November 2000
October 2000
September 2000
August 2000
July 2000
June 2000
May 2000
April 2000
March 2000
February 2000
January 2000
December 1999
November 1999
October 1999
September 1999
August 1999
July 1999
June 1999
May 1999
April 1999
March 1999
February 1999
January 1999
December 1998
November 1998
October 1998
September 1998
August 1998
July 1998
June 1998
May 1998
April 1998
March 1998
February 1998
December 1997
November 1997
October 1997

ATOM RSS1 RSS2



LISTSERV.HEANET.IE

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager