Re: getting plain text from the xslt processor...
"Rui Paiva" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Thanks guys... I thought the (output method="text") returned a dumb string variable (and in fact it does, in IE), but since i am trying to write a cross browser app, i changed the method to xml, and then I get the textContent of the documentElement. Have a good one... Rui "Martin Honnen" <[email protected]> wrote in message news:[email protected]... > > > Rui Paiva wrote: > > >> I am trying to get a plain text string as a result of a xsltransform, but >> I am getting instead >> <transformiix:result xmlns:transformiix="http://......">My/text/message >> </transformiix:result> > > That is as documented here: > <http://www.mozilla.org/projects/xslt/js-interface.html> > Simply read out > resultDocument.documentElement.textContent > then to have the text result. > > > > -- > > Martin Honnen > http://JavaScript.FAQTs.com/