Conversion of XML to a String in XSLT
564325Jun 16 2008 — edited Jun 17 2008Hello --
I've written an XSLT that creates a fragment of XML as the contents of an xsl variable element. I then want to convert that fragment to a string and use it as the value of another element. I've tried both the orcl:get-content-as-string() and ora:getContentAsString() functions with no success. Recognizing that both of these functions take a node-set as input, and that an xsl variable is not a node-set, I've also tried using ora:node-set() on the variable when passing it to the functions. None of these approaches works.
How can I use XSL and any extension functions to convert an XML fragment to a string for use as a value in an element belonging to a larger XML message?
Thanks for your time.
Paul Camann