Hi All,

I have a Xerces document which contains two subtrees, one with the data that 
shall be XSLT:d and the
other the XSL itself.
I use the XercesDocumentBridge to have a 1:1 mapping between the Xerces and the 
Xalan representation.
Now, XalanTransform can transform with XalanNode pointers as the input 
arguments to transform, or more
specifically:

// Get the XML root for XSL transformation
XSLTInputSource xmlInput(xmlNode);      // xmlNode type XalanNode*

// Get hold of XSL node
XSLTInputSource xalanXSL(xslNode);      // xslNode type XalanNode*

// Create a result target
XSLTResultTarget result(destURL.c_str());
                
// Do transformation
int iTransformResult = xalan.transform(xmlInput, xalanXSL, result);

where xmlNode is the root node of the XML tree to be transformed. What I want 
to know is the XML format
of the node pointed to by xslNode. Should it be:

<thexalanbasenode>      <- the node pointed to by xslNode node (???)
        <?xml version="1.0" encoding="ISO-8859-1"?>
        <!DOCTYPE xsl:stylesheet [
          <!ENTITY tab   "&#009;">
          <!ENTITY lf   "&#010;">
        ]>
        <xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
                <xsl:template match="testnode">
                ... [snip] ...
                </xsl:template>
        </xsl:stylesheet>
</thexalanbasenode>

TIA
/Robert Bielik

Reply via email to