This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

disable escaping in xalan:nodeset()


Hi,

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. So, the output of xmldb:getXmlRecord(@name) is a
xml file string with format like:

<xml>
....
</xml>

And what I want is to read the whole record. But since the output
escapes all the < and >, I cannot make xalan:nodeset() work.

Can anyone help me on this?

Thanks in advance.

Ming





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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]