Re: getting plain text from the xslt processor...

Emmanouil Batsis <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Organization Another Netscape Collabra Server User
Message-ID <[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 
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.