Hello,
i joined your list again.
I cannot find a generic answer.
Doc1 is my source document.
Doc2 is my second doument where i declare the titles to put depending on my
selected language.
Doc2 also have another nodes for other source documents.
The stylesheet should handle the transformation for all posible
source-documents.
All the language specific titles are declared in my doc2- document.
I am trying a identity copy from doc1 and put the titles from doc2 in my output.
Doc1 und Doc2 have a very similar structure.
Here we go:
Doc1 Example -----------
<Templates>
<Template name="CSV">
<Element name="head">
<Leaf name="Maprule" action="refresh,ins,del,save">
<Attribute name="match" editable="manual"/>
<Attribute name="value" editable="drop" refersto="KOPF"/>
</Leaf>
</Element>
</Template>
<Template name="CSV_HO">
<Element name="head" >
<Leaf name="Maprule">
<Attribute name="match" />
<Attribute name="value" editable="drop" refersto="KOPF"/>
</Leaf>
</Element>
</Template>
</Templates>
Doc2 Example ----------- Beginning with Root -Element inside Templates the same
structure as doc1
only with the language specific values for attribute title
<?xml version="1.0" encoding="iso-8859-1"?>
<Root>
<Templates file="templates.xml">
<Template name="CSV">
<Element name="head" title="1HeadElement">
<Leaf name="Maprule" action="refresh,ins,del,save">
<Attribute name="match" editable="manual" title="1match"/>
<Attribute name="value" editable="drop" refersto="KOPF"
title="1value"/>
</Leaf>
</Element>
<!-- following element nodes() -->
</Template>
<Template name="CSV_HO">
<Element name="head" title="2HeadElement">
<Leaf name="Maprule">
<Attribute name="match" title="2match"/>
<Attribute name="value" editable="drop" refersto="KOPF"
title="2value"/>
</Leaf>
</Element>
<!-- following element nodes() -->
</Template>
</Templates>
<!-- another sections to put titles from other sources, following infos.xml
-->
<Infos file="infos.xml">
<Template name="KOPF">
<Element name="KOPF_INDEX" title="KOPF_INDEX" />
<!-- etc-->
</Template>
<Template name="POS">
<Element name="POSITION_IDX" title="POSITION_IDX"/>
<!-- etc-->
</Template>
</Infos>
<!-- etc-->
</Root>
Output Example --------------------------------------------
<?xml version="1.0" encoding="iso-8859-1"?>
<Templates>
<Template name="CSV">
<Element name="head" title="1HeadElement">
<Leaf name="Maprule" action="refresh,ins,del,save">
<Attribute name="match" editable="manual" title="1match"/>
<Attribute name="value" editable="drop" refersto="KOPF"
title="1value"/>
</Leaf>
</Element>
</Template>
<Template name="CSV_HO">
<Element name="head" title="2HeadElement">
<Leaf name="Maprule">
<Attribute name="match" title="2match"/>
<Attribute name="value" editable="drop" refersto="KOPF"
title="2value"/>
</Leaf>
</Element>
</Template>
</Templates>
Thank you for help,
please excuse my signature below. The company where i work put it automatically
on my mails.
Hans Braumüller
-------------------------------------------------------------------------
Profitieren Sie von unseren kostenlosen Informationsveranstaltungen
zum Thema:
----- ----- ----- ----- ----- ----- ---- -----
"Liquiditaetsmanagement und Treasury in SAP®"
am 29. Juni 2006: Duesseldorf, Radisson SAS Hotel.
----- ----- ----- ----- ----- ----- ---- -----
Für weitere Informationen und zu den Anmeldeformularen:
http://www.hanseorga.de/deutsch/framesets/veranstaltungen/frameroadshow.html
Wir freuen uns über Ihre Teilnahme!
-------------------------------------------------------------------------
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser E-Mail ist nicht gestattet.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--