Hi again!
Yes, that worked! 
Thanks!!
I was only on thing I needed to do:
I skipped the statement:
$domnodeCurrent = $domnodeResultElement->first_child();
Here is the code one one hack:
if (!($tamino->query(“/person”)))
thfPrintError($tamino);
else
{
$domnodeResultElement = $tamino->getResultDomNode();
if ($domnodeResultElement) {
$kundeid = “222222”;
$xml = domxml_dumpmem($domnodeResultElement);
$xml = str_replace(‘ino:id=“1”’,‘’,$xml);
$arguments = array(‘/_xml’ => $xml);
$xh = xslt_create();
$result = xslt_process($xh, “arg:/_xml”, “b.xsl”, NULL, $arguments);
// DEBUG
// echo $result
}
}
if ($result) {
// echo “SUCCESS, sample.xml was transformed by sample.xsl into the $result”;
// echo " variable, the $result variable has the following contents\n
\n";
// echo “
\n”;
echo $result;
// echo “
\n”;
}
else
{
echo “Sorry, sample.xml could not be transformed by xsl into”;
echo " the $result variable the reason is that " . xslt_error($xh);
echo " and the error code is " . xslt_errno($xh);
}
xslt_free($xh);
// undefine collection
if (!($tamino->undefine(“myAddresses2”)))
thfPrintError($tamino);
else
// echo “Schema undefined successfully\n”;
// echo “<hr size="1" />\n”;
?>
I didn’t get the namespaces to work for when not replacing ino I got the error:
Sorry, sample.xml could not be transformed by xsl into the $result variable the reason is that invalid namespace prefix ‘ino’ and the error code is 24
I didn’t understand what namespace to use in my xsl file.
Here is the xsl file:
<?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version=“1.0”
xmlns:xsl=“
XSLT Namespace” xmlns:ino=“
http://heim.ifi.uio.no/~tomerikv”><xsl:template match=“/”>
Welcome to ANP Booking Activity 3 of 4 This page is English
<xsl:for-each select=“person/per”>
</xsl:for-each>
| ACTIVITY | ACT 2 | ACTIVITY START | ACTIVITY STOP | DESC | DIFFICULITY | PRICE | BOOK | HOMEPAGE |
| <xsl:value-of select=“actid”/> | <xsl:value-of select=“actid2”/> | <xsl:value-of select=“start”/> | <xsl:value-of select=“stop”/> | <xsl:value-of select=“desc”/> | <xsl:value-of select=“difficulity”/> | <xsl:value-of select=“price”/> | bookingfield | <xsl:value-of select=“homepage”/> |
</xsl:template></xsl:stylesheet>
Do you know what namespace to use?
The root element has the prefix ino:
Anyway, I’m very happy that it now works!!
Thanks a lot again!!
Best regards,
Tom-Erik
#webMethods-Tamino-XML-Server-APIs#API-Management#webMethods