Hi,

My problem is :

In a XSL file I make a call to an external function :

*<xsl:value-of select="external:ListToXML()"/>*

The function ListToXML() is like thatt :

*XObjectPtr NGATranslatorXSLFunctionListToXML::execute(
        XPathExecutionContext&       io__executionContext,
        XalanNode*                   io__context,
        const XObjectArgVectorType&  i__args,
        const LocatorType*           i__locator) const
{
    string l__xml;

    l__xml = "<exemple>exemple1</exemple><exemple>exemple2</exemple>";

    return io__executionContext.getXObjectFactory().createString(
                                                    XalanDOMString(
                                                            l__xml.c_str())
                                                            );
}
*

What I get in output (after transformation) is a XML part like that :

*& l t ; exemple & g t ;exemple1** **& l t ; **/exemple**& g t ; **& l t ;**
exemple**& g t ;**exemple2**& l t ;**/exemple**& g t ;*

It's encode the < to *& l t ;*
and *> *to* **& g t ;*

How can I get a correct XML part ?

Thanks,

Reply via email to