This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XML String as Parameter..
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 2 Apr 2002 10:20:50 +0100
- Subject: RE: [xsl] XML String as Parameter..
- Reply-to: xsl-list at lists dot mulberrytech dot com
You could parse the XML string to construct a Document node, and pass that
as the parameter; or you could use the document() function, after supplying
a URIResolver that recognizes a URI of the form "data:<xml>document
here</xml>" and returns the data part as a StreamSource object.
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Ramesh B
> Sent: 02 April 2002 04:41
> To: xsl-list@lists.mulberrytech.com
> Subject: RE: [xsl] XML String as Parameter..
>
>
> Hi,
> I want to extract information from the xml string
> passed as parameter using xpath.When i am trying to do
> this i am getting the Error.
>
> Or can you specify the possibilities by which
>
> I can process multiple XML Strings in my XSL.I cannot
> use document() function since i don't have my xml as a
> File BUT AS A STRING Coming from DataBase.I am using
> Xalan.
>
> Thanks a Lot for your Help,
> Ramesh
> --- Michael Kay <michael.h.kay@ntlworld.com> wrote:
> > > But Now i Need One more XML String Created from
> > > DataBase to Be Passed on to the XSL.This XML Deals
> > > with display of some Related Information
> > >
> > > So i thought i will pass my Second XML as a
> > Parameter
> > > to my XSL and Use it.
> > >
> > > Now the Problem starts
> > > The parameter is getting the XML Value Passed
> > > But when i tried to refer the Parameter in XPath
> > it
> > > Gives the Error "Cannot convert string to NodeSet"
> >
> > Why are you trying to convert the string parameter
> > to a node-set?
> >
> > Michael Kay
> > Software AG
> > home: Michael.H.Kay@ntlworld.com
> > work: Michael.Kay@softwareag.com
> >
> >
> > XSL-List info and archive:
> > http://www.mulberrytech.com/xsl/xsl-list
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://http://taxes.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