Willem:
You can use a CDATA section to embed your XML. The parser will ignore
anything in a CDATA section.
<?xml version=”1.0”?>
<root>
<element>
<![CDATA[
<?xml version="1.0" encoding="utf-16"?>
<AXFRoot>
<MAObject type="default" mdclass="EPISODE">
<GUID dmname="">595233000</GUID>
]]>
.....
</element>
</root>
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Betty Harvey | Phone: 410-787-9200 FAX: 9830
Electronic Commerce Connection, Inc. |
harvey(_at_)eccnet(_dot_)com | Washington,DC XML Users Grp
URL: http://www.eccnet.com <http://www.eccnet.com> |
http://www.eccnet.com/xmlug
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
Member of XML Guild (www.xmlguild.org)
On Tue, Jun 26, 2018 at 7:38 AM, Willem Van Lishout
willemvanlishout(_at_)gmail(_dot_)com
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
Hi,
I’m required to produce an XML file like this using XSLT 1.0:
<?xml version=”1.0”?>
<root>
<element>
<?xml version="1.0" encoding="utf-16"?>
<AXFRoot>
<MAObject type="default" mdclass="EPISODE">
<GUID dmname="">595233000</GUID>
.....
</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 <-list/480526> (by
email <>)
--~----------------------------------------------------------------
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
--~--