diff --git a/src/XML/ds/Transform.php b/src/XML/ds/Transform.php index b18abb31..8e7effdf 100644 --- a/src/XML/ds/Transform.php +++ b/src/XML/ds/Transform.php @@ -130,13 +130,11 @@ public static function fromXML(DOMElement $xml): static public function toXML(?DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); - - $algorithm = $this->getAlgorithm(); - $e->setAttribute('Algorithm', $algorithm); + $e->setAttribute('Algorithm', $this->getAlgorithm()); switch ($algorithm) { case C::XPATH10_URI: - $this->getXpath()?->toXML($e); + $this->getXPath()?->toXML($e); break; case C::C14N_EXCLUSIVE_WITH_COMMENTS: case C::C14N_EXCLUSIVE_WITHOUT_COMMENTS: