S
Stefan
Hi there!
I'm very new to XML and XSLT, so while working i encountered the
following, probably very easy to solve, problem.
i've got 2 XML-files, which look like this:
LinesOfCode.xml:
<?xml version="1.0"?>
<component name="ORCA_Common">
<LOC-netto>2100</LOC-netto>
<LOC-blank>200</LOC-blank>
<LOC-comment>400</LOC-comment>
<LOC>2700</LOC>
<Comment-netto>20%</Comment-netto>
</component>
CodeCoverage.xml:
<?xml version="1.0"?>
<component name="ORCA_Common">
<Coverage>50%</Coverage>
</component>
Both should be combined to a "component.xml", lookinf like this:
<?xml version="1.0"?>
<component name="ORCA_Common">
<LOC-netto>2100</LOC-netto>
<LOC-blank>200</LOC-blank>
<LOC-comment>400</LOC-comment>
<LOC>2700</LOC>
<Comment-netto>20%</Comment-netto>
<Coverage>50%</Coverage>
</component>
so just adding the data of the one XML to the data of the other.
I wanted to use a primary source, referring to both files, looking like
this:
<?xml version="1.0"?>
<index>
<entry>LinesOfCode</entry>
<entry>CodeCoverage</entry>
</index>
and logically the document() funcition in the xsl-file.
Could you please tell me how to do this? i tried several times with
lots of different XSL-files, but nothing seems to work.
Thanks in advance!
Greets, Stefan
I'm very new to XML and XSLT, so while working i encountered the
following, probably very easy to solve, problem.
i've got 2 XML-files, which look like this:
LinesOfCode.xml:
<?xml version="1.0"?>
<component name="ORCA_Common">
<LOC-netto>2100</LOC-netto>
<LOC-blank>200</LOC-blank>
<LOC-comment>400</LOC-comment>
<LOC>2700</LOC>
<Comment-netto>20%</Comment-netto>
</component>
CodeCoverage.xml:
<?xml version="1.0"?>
<component name="ORCA_Common">
<Coverage>50%</Coverage>
</component>
Both should be combined to a "component.xml", lookinf like this:
<?xml version="1.0"?>
<component name="ORCA_Common">
<LOC-netto>2100</LOC-netto>
<LOC-blank>200</LOC-blank>
<LOC-comment>400</LOC-comment>
<LOC>2700</LOC>
<Comment-netto>20%</Comment-netto>
<Coverage>50%</Coverage>
</component>
so just adding the data of the one XML to the data of the other.
I wanted to use a primary source, referring to both files, looking like
this:
<?xml version="1.0"?>
<index>
<entry>LinesOfCode</entry>
<entry>CodeCoverage</entry>
</index>
and logically the document() funcition in the xsl-file.
Could you please tell me how to do this? i tried several times with
lots of different XSL-files, but nothing seems to work.
Thanks in advance!
Greets, Stefan