Subject: Re: multiple detaillines
From: Jörg Heinicke <joerg.heinicke@xxxxxx>
Date: Mon, 25 Mar 2002 18:46:43 +0100
|
Hi Joeri,
I have a problem with your code: I can't see any connection between XML 1
and XML 2/XML Output. It's no problem to create XMl Output from XML 2, but
with XML 1? Maybe you explain it a bit more explicitely. Your stylesheet
(replacing 1 cell) can maybe help too.
Regards,
Joerg
> hi
>
> I have 2 XML files. One file being being a simplified excel XML file which
> is my input XML also.
> My second XML file contains the data that is want to replace in the first
> XML.
>
> Replacing 1 cell works fine. But now i want to add multiple detail lines.
> The "template" file only contains 1 (one) detail line with a dummy data
> element and a named element
> the give info on what needs to inserted in the dummy element.
>
> So i need to replace the dummy line and add more lines.
>
> take a look at the example XML files for a better understanding what my
> output looks like.
> Thanks for any help.
>
> XML 1 ( simplified excel XML generated file )
>
> <row>
> <cell>
> <data>9</data>
> <namedcell name="rownumber"/>
> <data>x</data>
> <namedcell name="article"/>
> </cell>
> </row>
>
>
> XML 2
>
> <order>
> <header>
> <ordernr>100</ordernr>
> </header>
> <details>
> <orderline nrl="1">
> <data>Article A</data>
> </orderline>
> <orderline nrl="2">
> <data>Article B</data>
> </orderline>
> <orderline nrl="3">
> <data>Article C</data>
> </orderline>
> </details>
> </order>
>
> output XML
> <row>
> <cell>
> <data>1</data>
> <data>Article A</data>
> <data>2</data>
> <data>Article B</data>
> <data>3</data>
> <data>Article C</data>
> </cell>
> </row>
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|