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 "Emmanouil Batsis" <[email protected]> wrote in message news:[email protected]... > > I havent seen your code but i believe the result of it must be a Document > object. You can only have that if the transformation result serialization > is a well-formed XML document. The wrapper is there for just that. > > Manos > > Rui Paiva wrote: >> Hi everyone, >> >> 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> >> >> using the following xslTransform... >> >> <?xml version="1.0" encoding="ISO-8859-1"?> >> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >> version="2.0"> >> >> <xsl:output method="text" version="1.0" encoding="ISO-8859-1" /> >> >> <xsl:template match="/" > >> >> <xsl:value-of select=" concat ( //FileList [ @currentFileList = >> 'true' ]/RelativePath/text(), '/' ) " /> >> <xsl:value-of select=" //FileList [ @currentFileList = >> 'true' ]/FileName/text() " /> >> >> </xsl:template > >> >> </xsl:stylesheet> >> >> How do I get rid of the <transformiix:result> element and keep only >> element text ? >> >> Thanks >> >> Rui