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

Re: disable escaping in xalan:nodeset()

Subject: Re: disable escaping in xalan:nodeset()
From: Ming <myu@xxxxxxxx>
Date: Wed, 15 May 2002 13:13:44 -0600
xalan nodeset example
The problem is that the method call xmldb:getXmlRecord(@name) is a java method,
not a servlet.  Is there a way to return a nodeset in a java method call?

You also mentioned that maybe it can be done with extension functions. Can you
explain a little more about it?

Thanks a lot.

Ming
Joerg Heinicke wrote:

> You should change your servlet to return a nodeset instead of a string.
> Otherwise you have to parse the string, which is only possible with
> extension functions.
>
> Joerg
>
> Ming schrieb:
> > Because the result returned from the xmldb:getXmlRecord(@name) is in xml
> > format. I need to be able to read it like a regular xml file. Do you know any
> > other way  I can do this?
> >
> > For example, the result returned from xmldb:getXmlRecord(@name) is in this
> > format:
> > <xml>
> > <article>
> > <title> title1 </title>
> > </article>
> > </xml>
> >
> > And what I want is to be able to read this string just like to read a xml
> > file.
> >
> > Thanks.
> >
> > Ming
> >
> > Oleg Tkachenko wrote:
> >
> >
> >>Ming wrote:
> >>
> >>
> >>>This is actually a question related to the one I posted yesterday
> >>>regarding reading records from database in XSLT. But it's a different
> >>>problem so I decided to post as a different topic so people can search
> >>>easily.
> >>>
> >>>I'm having trouble to make xalan:nodeset() work because the value
> >>>I passed to xalan:nodeset is escaped. So, all the tags (< and >) are
> >>>escaped to &lt; and &gt; and the xalan:nodeset cannot recognize them.
> >>>
> >>>Here is what I did. In mystylesheet,
> >>>
> >>>   <xsl:variable name='record' select=
> >>>"xalan:nodeset(xmldb:getXmlRecord(@name))/xml"/>
> >>>
> >>>The xmldb:getXmlRecord(String key) is a java method used to get the key
> >>>from the xml file, access the mysql database, get the value from the key
> >>>and return the string.
> >>
> >>xalan:nodeset() function is supposed to convert result tree fragments to
> >>nodeset, why do you want to use it to parse string???
> >>
> >>--
> >>Oleg Tkachenko
> >>Multiconn International, Israel
> >>
> >> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
> >
> >
> >
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
> >
>
>  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.