View Single Post
  #3 (permalink)  
Old December 4th, 2019, 09:29 AM
Neal Neal is offline
Friend of Wrox
Points: 718, Level: 10
Points: 718, Level: 10 Points: 718, Level: 10 Points: 718, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: Ennis, Clare, Ireland.
Posts: 131
Thanks: 10
Thanked 0 Times in 0 Posts
Default

Thanks Michael,
I'm using XMLSpy 2017 Professional. I hope I understand your reply. Here is the xslt code including referenced namespaces.

Code:
 
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsi:schemaLocation="" xmlns:env="http://schemas.microsoft.com/dynamic...uments/Message" xmlns:mp="http://schemas.microsoft.com/dynamic...uments/Message" xmlns:ns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:date="http://exslt.org/dates-and-times"
exclude-result-prefixes="xsl env mp ns xsi date">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>

<xsl:template match="/">
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Level1>
.... 
</Level1>
</Document>
</xsl:template>
</xsl:stylesheet>
The desired output expected is:

Code:
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Level1>
.... 
</Level1>
</Document>
__________________
Neal

A Northern Soul
Reply With Quote