Re: [xsl] disable escaping in xalan:nodeset()

Subject: Re: [xsl] disable escaping in xalan:nodeset()
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Wed, 15 May 2002 21:00:52 +0200
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.


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
<title> title1 </title>

And what I want is to be able to read this string just like to read a xml



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

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=

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:

XSL-List info and archive:

XSL-List info and archive:

Current Thread