xsl-list
[Top] [All Lists]

Re: [xsl] [Using xsltproc]: output of running XSLT is missing xmlns attributes

2022-05-05 04:52:17

On 05.05.2022 11:47, ohaya ohaya(_at_)yahoo(_dot_)com wrote:
and the output that I am getting is:

<?xml version="1.0"?>
<exp:Export xmlns:L7p="http://www.layer7tech.com/ws/policy"; 
xmlns:exp="http://www.layer7tech.com/ws/policy/export"; 
xmlns:wsp="http://schemas.xmlsoap.org/ws/2002/12/policy"; Version="3.0">
   <exp:References/>
   <wsp:Policy>
     <wsp:All wsp:Usage="Required">
       <L7p:AuditAssertion>
         <L7p:Level stringValue="INFO"/>
       </L7p:AuditAssertion>
       <L7p:AuditDetailAssertion>
         <L7p:Detail stringValue="2222"/>
       </L7p:AuditDetailAssertion>
       <L7p:AuditDetailAssertion>
         <L7p:Detail stringValue="333"/>
       </L7p:AuditDetailAssertion>
       <wsp:OneOrMore wsp:Usage="Required">
         <wsp:OneOrMore wsp:Usage="Required">
           <L7p:AuditDetailAssertion>
             <L7p:Detail stringValue="444"/>
           </L7p:AuditDetailAssertion>
         </wsp:OneOrMore>
         <wsp:OneOrMore wsp:Usage="Required">
           <L7p:AuditDetailAssertion>
             <L7p:Detail stringValue="555"/>
           </L7p:AuditDetailAssertion>
         </wsp:OneOrMore>
       </wsp:OneOrMore>
     </wsp:All>
   </wsp:Policy>
</exp:Export>

Notice that in the output, the <wsp:Policy> is missing the two "xmlns" attributes, 
"xmlns:L7p" and "xmlns:wsp".

How can I get the XSLT to include those "xmlns" attributes on the <wsp:Policy> 
element?


Both namespaces are defined already higher up in the tree so there is no
need to duplicate that declaration.
--~----------------------------------------------------------------
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>