Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

xsd with reference schemas to import elements from reference schema to xsd

$
0
0

Hi ,

We are going to extract the data from the xbrl files. Client using one excel template to generate the xbrl files.  While generating from the excel sheet it is generating 1 xsd file and multiple xml files.

 

XSD file having multiple name spaces by referencing the multiple xsd files from resource library.

 

 

 

If we create the xsd file format with generated xsd file in the SAP Data Services, under the name space section it is giving the multiple name spaces available in the xsd.

 

If we select any name space, it will list out all the elements in the namespace and we have to choose the root element based on our input xml file.

 

If we come to xml file, it has elements of multiple name spaces

 

The data xml file having xbrl root element.    But while generating the xbrl file data elements may scatter to different schemas which are referenced by main xsd. 

 

I can choose only one namespace at a time from the data services xsd format. It is listing only elements from that schema but it not showing the elements from the referenced schemas.

 

 

Problem:

 

Since xml file has only one root element, if we choose different name space from xsd that root element won’t be available. If we choose the name space which contains root element, remaining elements which contains data are not available as those are coming from different schema.

Example:

Xml file has root element “xbrl” that is coming from main xsd file http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd with name space of http://www.xbrl.org/2003/instance    . Actual my data elements are TypeOfIndustry, DocumentCurrentPeriodEndDate etc. from the schema "sca-rep/sca-rep_2011-03-31.xsd” with name space of http://www.xbrl.org/ae/sca/2011-03-31/sca-rep .   When I am selecting the http://www.xbrl.org/ae/sca/2011-03-31/sca-rep  name space in the SAP Data Services  xsd schema  it is not importing elements from the referenced schemas . So I am not getting root element and SAP Data Services throwing the error as root element is not available in the selected name space(schema) and could not import the elements from the reference schemas .

 

 

Is data services supports xsd with reference schema to import elements from reference schema to main schema?

 

Thanks & Regards,

Ramana.


Viewing all articles
Browse latest Browse all 4013

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>