If you draw a new SSML document and then clone it, the clone has the right XML content but is a RubySpeech::GRXML::Element. As a result, you cannot embed this document into another SSML document. This is shown in the following tests: sfgeorge/ruby_speech@50c5a4a.
If you
draw
a new SSML document and then clone it, the clone has the right XML content but is aRubySpeech::GRXML::Element
. As a result, you cannotembed
this document into another SSML document. This is shown in the following tests: sfgeorge/ruby_speech@50c5a4a.It seems that cloning any GenericElements is designed to always produce GRXML document. Cloning an SSML doc should result in another SSML doc.