EDN Admin
Well-known member
<span style="font-family:verdana,arial,sans-serif <span style="border-collapse:collapse; font-size:11px
<span><span style="font-size:10.0pt; font-family:Verdana; color:black Hello .<span style="font-size:10.0pt; font-family:Verdana; color:black <br/>
<br/>
<span>Can some one please explain me relation between namespaces defined in xml, xsd and xsl ( stylesheet)? My XSL is not working if I use default namespace.<br/>
<br/>
<span>Namespace in I have used please see picture.<br/>
<br/>
<span> in XSD <br style="
<br style="
<span> <span style="font-size:10.0pt; font-family:Verdana; color:black <xs:schema xmlns="urn:iso:std:iso:20022:tech:xsd:acmt.010.001.01" xmlns:xs=" http://www.w3.org/2001/XMLSchema" target="_blank <span style="color:#0000cc http://www.w3.org<span style="color:#0000cc /<span style="color:#0000cc 2001/XMLSchema "
elementFormDefault="qualified" targetNamespace="urn:iso:std:iso:20022:tech:xsd:acmt.010.001.01 <span style="font-size:10.0pt; font-family:Verdana; color:black <br/>
<br/>
<span>in XML<br/>
<br/>
<span><Document <br/>
<span>xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:acmt.010.001.01 acmt010.xsd" <br/>
<span>xmlns="urn:iso:std:iso:20022:tech:xsd:acmt.010.001.01" <br/>
<span>xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" target="_blank <span style="color:#0000cc http://www.w3.org<span style="color:#0000cc /<span style="color:#0000cc 2001/XMLSchema-instance "<br/>
<span>> <br/>
<br/>
<span>In XSL<br/>
<br/>
<span><xsl:stylesheet version="1.0" <br/>
<span>xmlns:xsi="urn:iso:std:iso:20022:tech:xsd:acmt.010.001.01" <br/>
<span>xmlns:xsl=" http://www.w3.org/1999/XSL/Transform" target="_blank <span style="color:#0000cc http://www.w3.org<span style="color:#0000cc /<span style="color:#0000cc 1999/XSL/Transform " <br/>
<span>xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:acmt.010.001.01 file:/C:/xml/working/testing/acmt.010.001.01.xsd" <br/>
<span>><br/>
<br/>
<span>My XSL transformation is not working.<br/>
<br/>
<span>However if I change my namespace in xml to <br/>
<br/>
<span><Document <br/>
<span>xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:acmt.010.001.01 acmt010.xsd" <br/>
<span>xmlns:xsl="urn:iso:std:iso:20022:tech:xsd:acmt.010.001.01" <br/>
<span>xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" target="_blank <span style="color:#0000cc http://www.w3.org<span style="color:#0000cc /<span style="color:#0000cc 2001/XMLSchema-instance "<br/>
<span>> <br/>
<span>Then transformation is working but xml editior tool is giving warning "cvc-elt.1: The element declaration was not found for root element <Document>". <span style="font-size:10.0pt; font-family:Verdana; color:black <br/>
<br/>
<span>can some help me with this?<span style="font-size:10.0pt
View the full article
<span><span style="font-size:10.0pt; font-family:Verdana; color:black Hello .<span style="font-size:10.0pt; font-family:Verdana; color:black <br/>
<br/>
<span>Can some one please explain me relation between namespaces defined in xml, xsd and xsl ( stylesheet)? My XSL is not working if I use default namespace.<br/>
<br/>
<span>Namespace in I have used please see picture.<br/>
<br/>
<span> in XSD <br style="
<br style="
<span> <span style="font-size:10.0pt; font-family:Verdana; color:black <xs:schema xmlns="urn:iso:std:iso:20022:tech:xsd:acmt.010.001.01" xmlns:xs=" http://www.w3.org/2001/XMLSchema" target="_blank <span style="color:#0000cc http://www.w3.org<span style="color:#0000cc /<span style="color:#0000cc 2001/XMLSchema "
elementFormDefault="qualified" targetNamespace="urn:iso:std:iso:20022:tech:xsd:acmt.010.001.01 <span style="font-size:10.0pt; font-family:Verdana; color:black <br/>
<br/>
<span>in XML<br/>
<br/>
<span><Document <br/>
<span>xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:acmt.010.001.01 acmt010.xsd" <br/>
<span>xmlns="urn:iso:std:iso:20022:tech:xsd:acmt.010.001.01" <br/>
<span>xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" target="_blank <span style="color:#0000cc http://www.w3.org<span style="color:#0000cc /<span style="color:#0000cc 2001/XMLSchema-instance "<br/>
<span>> <br/>
<br/>
<span>In XSL<br/>
<br/>
<span><xsl:stylesheet version="1.0" <br/>
<span>xmlns:xsi="urn:iso:std:iso:20022:tech:xsd:acmt.010.001.01" <br/>
<span>xmlns:xsl=" http://www.w3.org/1999/XSL/Transform" target="_blank <span style="color:#0000cc http://www.w3.org<span style="color:#0000cc /<span style="color:#0000cc 1999/XSL/Transform " <br/>
<span>xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:acmt.010.001.01 file:/C:/xml/working/testing/acmt.010.001.01.xsd" <br/>
<span>><br/>
<br/>
<span>My XSL transformation is not working.<br/>
<br/>
<span>However if I change my namespace in xml to <br/>
<br/>
<span><Document <br/>
<span>xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:acmt.010.001.01 acmt010.xsd" <br/>
<span>xmlns:xsl="urn:iso:std:iso:20022:tech:xsd:acmt.010.001.01" <br/>
<span>xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" target="_blank <span style="color:#0000cc http://www.w3.org<span style="color:#0000cc /<span style="color:#0000cc 2001/XMLSchema-instance "<br/>
<span>> <br/>
<span>Then transformation is working but xml editior tool is giving warning "cvc-elt.1: The element declaration was not found for root element <Document>". <span style="font-size:10.0pt; font-family:Verdana; color:black <br/>
<br/>
<span>can some help me with this?<span style="font-size:10.0pt
View the full article