Subject:XBRL instance from XML data using XSLT Author:Michael Touchard Date:10 Oct 2005 04:51 AM
Hi all,
I'm new on this forum.
I'm also new on XML/XSLT/XBRL technology, so sorry for that.
I've to create a XBRL instance document (matching an XRL Schema) from a simple XML file containing the data. It seems the only way to do that is to pass by a XSLT file.
Is somebody in the assembly could confirm that to me?
If it's correct, I'll be grateful if is somebody could send me very simple example.
Subject:XBRL instance from XML data using XSLT Author:(Deleted User) Date:10 Oct 2005 10:46 AM
I can think of 3 ways to accomplish your task:
1) You can use XSLT
2) You can use XQuery
3) You can write program using C++/Java/C#...
You can find good XSLT tutorial with some examples at
www.w3schools.com/xsl/
or XQuery tutorial on the same site:
www.w3schools.com/xquery/
If you need specific XSLT or XQuery examples you can post your
source XML and target XBRL fragments here and I'll try to create
sample XSLT/XQuery for you.
Subject:XBRL instance from XML data using XSLT Author:Michael Touchard Date:10 Oct 2005 11:06 AM
Thanks to you.
Here a simple example of XBRL.
- XML_instance.xml is the XML data file extracted from a DB
- ex.xsd is the xbrl schema
- instance.xml is the xbrl instance file supposed to be produced after the xml_instance.xml has passed in the XSLT file
I have received these file like that, I don't know if they are correct.
Subject:XBRL instance from XML data using XSLT Author:(Deleted User) Date:10 Oct 2005 12:35 PM
This XSLT does not do everything, just illustrates some features.
BTW, I had to add <xml> as a root of XML_Instance.xml. Without it document is invalid.