https://issues.apache.org/bugzilla/show_bug.cgi?id=44983
--- Comment #5 from Patrick Hagelkruys <hagelkr...@a-trust.at> 2010-05-07 11:20:14 EDT --- Here is my DomToSafeBuffer class, is has not the same syntax as the c14n class, but i think this way it is much easier. I put the class into xsec/utils/ changes in DSIGTransformXSL::appendTransformer() // Create the XSLT transform XSECnew(x, TXFMXSL(mp_txfmNode->getOwnerDocument())); input->appendTxfm(x); /* // Again use C14n (convenient) to translate to a SafeBuffer XSECC14n20010315 c14n(mp_txfmNode->getOwnerDocument(), mp_stylesheetNode); safeBuffer sbStyleSheet; unsigned int size, count; unsigned char buf[512]; size = 0; while ((count = c14n.outputBuffer(buf, 512)) != 0) { sbStyleSheet.sbMemcpyIn(size, buf, count); size += count; } sbStyleSheet[size] = '\0'; // Terminate as though a string */ XSECDomToSafeBuffer tosb(mp_txfmNode->getOwnerDocument(), mp_stylesheetNode); safeBuffer sbStyleSheet = tosb.getSafeBuffer(); x->evaluateStyleSheet(sbStyleSheet); -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.