xsl-list
[Top] [All Lists]

[xsl] Embedding XML in another XML

2018-06-26 06:38:48
Hi,



I’m required to produce an XML file like this using XSLT 1.0:



<?xml version=”1.0”?>

<root>

  <element>

    &lt;?xml version="1.0" encoding="utf-16"?&gt;
      &lt;AXFRoot&gt;
        &lt;MAObject type="default" mdclass="EPISODE"&gt;
           &lt;GUID dmname=""&gt;595233000&lt;/GUID&gt;

  .....

  </element>

</root>


So basically I have to put a string-encoded XML structure inside another
XML. While I'm sure this is theoretically possible by just using
<xsl:text>, this does not seem like a sustainable way of working with long
and deep structures.


Is this possible without resorting to 'heavier' programming solutions?


If XSLT 2.0 or 3.0 can offer a solution I'd also like to hear.


Unfortunately I am not able to adapt the software on the other side.


Thanks,

Willem
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>