Hi,

I am using XSLT to read an xml node and output it to text area form
element, but output of xslt adds namespace seems like live server
adding this while delivering the result. I have used exclude-result-
prefix at my xslt source to suppress it but it is not doing it? How
can i suppress this name space?

For example
My XML document looks like

<outputDescription>
   <description>
        <p><strong>Testing</strong></p>
        <p><strong>Some sample text</strong></p>
   <description>
</outputDescription>

MY XSLT
 <xsl:template match="outputDescription">
    <xsl:variable name="fieldName" select="@fieldName"/>
    <xsl:apply-templates select="../../..//xmlDocument//*[name()=
$fieldName]/node()"/>
</xsl:template>

Output
<p><strong xmlns:fo="http://www.w3.org/1999/XSL/Format";
xmlns:rde="http://www.reddot.de/rde/ns"; xmlns:rde-dm="http://
www.reddot.de/rde/ns/dm" xmlns:rde-fdl="http://www.reddot.de/rde/ns/
fdl" xmlns:rde-idea="http://www.reddot.de/rde/ns/idea"; xmlns:rde-
rd="http://www.reddot.de/2000/rde/rd"; xmlns:rde-rdf="http://
www.reddot.de/rde/ns/rdf" xmlns:rde-xmaps="http://www.reddot.de/rde/ns/
xmaps" xmlns:rdf="http://www.w3.org/TR/REC-rdf-syntax/";
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; xmlns:xsl-
template="http://www.reddot.de/rde/ns/template";>Testing</strong></p>
<p xmlns:fo="http://www.w3.org/1999/XSL/Format"; xmlns:rde="http://
www.reddot.de/rde/ns" xmlns:rde-dm="http://www.reddot.de/rde/ns/dm";
xmlns:rde-fdl="http://www.reddot.de/rde/ns/fdl"; xmlns:rde-idea="http://
www.reddot.de/rde/ns/idea" xmlns:rde-rd="http://www.reddot.de/2000/rde/
rd" xmlns:rde-rdf="http://www.reddot.de/rde/ns/rdf"; xmlns:rde-
xmaps="http://www.reddot.de/rde/ns/xmaps"; xmlns:rdf="http://www.w3.org/
TR/REC-rdf-syntax/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:xsl-template="http://www.reddot.de/rde/ns/template";>Some sample
text</p>
<p>&#160;</p>

I am expecting output to be like below,
<p><strong>Testing</strong></p>
<p><strong>Some sample text</strong></p>

How can i suppress the namespace which liveserver adds at delivery?

Thanks
Rajesh

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/reddot-cms-users?hl=en.

Reply via email to