Skip to content

Commit

Permalink
#1 iXBRL -> xBRL-XML
Browse files Browse the repository at this point in the history
  • Loading branch information
John Nordberg committed Mar 5, 2023
1 parent 612f964 commit 6542f3b
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions ixbrl.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,35 @@
indent="yes"
method="xml" />

<!-- report -->
<xsl:template match="/">
<result>
<xbrli:xbrl>
<xsl:apply-templates />
</result>
</xbrli:xbrl>
</xsl:template>

<xsl:template match="xbrli:context">
<!-- entrypoint -->
<!-- <xsl:template match="ix:header/ix:references/link:schemaRef">
<xsl:copy-of select="."/>
</xsl:template> -->

<!-- context -->
<!-- <xsl:template match="ix:header/ix:resources/xbrli:context">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:template> -->

<xsl:template match="xbrli:unit">
<!-- unit -->
<!-- <xsl:template match="ix:header/ix:resources/xbrli:unit">
<xsl:copy-of select="."/>
</xsl:template> -->

<!-- fact -->
<xsl:template match="ix:*[@contextRef!='']">
<xsl:element name="{@name}">
<xsl:value-of select="."/>
</xsl:element>
</xsl:template>

<!-- <xsl:template match="text()|@*"> -->

<xsl:template match="text()">
<!-- <xsl:value-of select="."/> -->
</xsl:template>
Expand Down

0 comments on commit 6542f3b

Please sign in to comment.