Extract an XBRL instance document from the Inline XBRL within R



I'm trying to extract XBRL from iXBRL (html) document with XSLT 2.0 processor - Saxon.


Information on this can be found here


After following instructions on installing XSLT 2.0 processor - Saxon and Inline XBRL Extractor (reference implementation), I tried to run this convertion in R console directly as:


setwd("C:/path....")


system(paste("Transform -s:input.xml -xsl:Main_xslt20.xsl -o:output/mainResult.xbrl"))


However I'm getting error had status 127


Are there any other options within R?


There used to be Sxslt r package, see link here


I understand that there is transformations processor bineries such as libxslt see reference: here ,but I have no experience whatsoever how to proceed from here. I know there has been discussion on this on SO but I lost it and cannot find the SO contribution on this anymore.


Would be someone so kind and suggest solution? I hope I'm not asking too much!



sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)

No comments:

Post a Comment