Forum Stats

  • 3,757,032 Users
  • 2,251,188 Discussions
  • 7,869,694 Comments

Discussions

How to populate XML schema details in XSLT output

g.g.naware
g.g.naware Member Posts: 3 Blue Ribbon

I want to print details about XML schema , xmlns on XSLT output as below.

<?xml version="1.0" encoding="UTF-8"?>
<CBISEDACReqLogMsg xsi:schemaLocation="urn:CBI:xsd:CBISEDACReqLogMsg.00.01.04 CBISEDACReqLogMsg.00.01.04.xsd" 
xmlns="urn:CBI:xsd:CBISEDACReqLogMsg.00.01.04" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

But in actual

In my XSLT output I can see below.

  <?xml version="1.0" encoding="UTF-8" ?> 
- <CBISEDACReqLogMsg xmlns="urn:CBI:xsd:CBISEDACReqLogMsg.00.01.04">

My XSLT is as code is below

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" 
xmlns:calendar="http://www.oracle.com/XSL/Transform/java/java.util.Calendar" 
xsl:schemaLocation="urn:CBI:xsd:CBISEDACReqLogMsg.00.01.04 CBISEDACReqLogMsg.00.01.04.xsd"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="urn:CBI:xsd:CBISEDACReqLogMsg.00.01.04"
xmlns:string="http://www.oracle.com/XSL/Transform/java/java.lang.String" 
exclude-result-prefixes="calendar string">
  <xsl:output method="xml" indent="yes" encoding="UTF-8"></xsl:output>
  <xsl:template match="/">
Kindly help me for how to show other required details in XSLT output.
Tagged:
This discussion has been closed.