XSLT 1.0 Copy-of mehrerer Nodes inkl. Zeilenumbruch
bearbeitet von
Hi,
ich würde gerne prüfen, ob unter "Contact_DP" der Unterpunkt "Mail" befüllt ist, wenn ja soll unter "DeliveryAddressInformation/Street" der vorhandene Wert inkl. "Contact_DP/Mail" und Zeilenumbruch ausgegeben werden.
~~~
<?xml version="1.0"?>
<SALESORDER>
<Interchange>
<HeaderInformation>
<DeliveryAddressInformation>
<Street>Test-Str. 8
</Street>
<Contact_DP>
<Name>Test</Name>
<Mail>e-business@bahag.com</Mail>
</Contact_DP>
</DeliveryAddressInformation>
<LineItem>
<Line>10</Line>
</LineItem>
</HeaderInformation>
</Interchange>
</SALESORDER>
~~~
Korrekt:
~~~
<?xml version="1.0"?>
<SALESORDER>
<Interchange>
<HeaderInformation>
<DeliveryAddressInformation>
<Street>Test-Str. 8
Test
e-business@bahag.com
</Street>
<Contact_DP>
<Name>Test</Name>
<Mail>e-business@bahag.com</Mail>
</Contact_DP>
</DeliveryAddressInformation>
<LineItem>
<Line>10</Line>
</LineItem>
</HeaderInformation>
</Interchange>
</SALESORDER>
~~~
Danke & LG
Julian
XSLT 1.0 Copy-of mehrerer Nodes inkl. Zeilenumbruch
bearbeitet von
Hi,
ich würde gerne prüfen, ob unter "Contact_DP" der Unterpunkt "Mail" befüllt ist, wenn ja soll unter "DeliveryAddressInformation/Street" der vorhandene Wert inkl. "Contact_DP/Mail" und Zeilenumbruch ausgegeben werden.
~~~
<?xml version="1.0"?>
<SALESORDER>
<Interchange>
<HeaderInformation>
<DeliveryAddressInformation>
<Street>Test-Str. 8</Street>
<Contact_DP>
<Mail>e-business@bahag.com</Mail>
</Contact_DP>
</DeliveryAddressInformation>
<LineItem>
<Line>10</Line>
</LineItem>
</HeaderInformation>
</Interchange>
</SALESORDER>
~~~
Korrekt:
~~~
<?xml version="1.0"?>
<SALESORDER>
<Interchange>
<HeaderInformation>
<DeliveryAddressInformation>
<Street>Test-Str. 8
e-business@bahag.com
</Street>
<Contact_DP>
<Mail>e-business@bahag.com</Mail>
</Contact_DP>
</DeliveryAddressInformation>
<LineItem>
<Line>10</Line>
</LineItem>
</HeaderInformation>
</Interchange>
</SALESORDER>
~~~
Danke & LG
Julian