I am new to XSLT and I do not know how to accomplish the following.
The following is part of an xbrl document created by another program. Through XSLT, I would like to add an extra element to the position of my comment line:
<xbrli:context id="ctx1">
[...]
</xbrli:context>
<bd-ob-tuple:TaxData>
[...]
</bd-ob-tuple:TaxData>
At this point, I would like to add the following element using XSLT:
<xbrli:unit id="EUR">
<xbrli:measure>iso4217:EUR</xbrli:measure>
</xbrli:unit>
So, the end result will be:
<xbrli:context id="ctx1">
[...]
</xbrli:context>
<xbrli:unit id="EUR">
<xbrli:measure>iso4217:EUR</xbrli:measure>
</xbrli:unit>
<bd-ob-tuple:TaxData>
[...]
</bd-ob-tuple:TaxData>
(An element xbrli:contexthas only one occurrence in the entire document, so is it perhaps easier to find this position for a new element?)
Is there any way to accomplish this through XSLT?
Randy source
share