Re: [xsl] A use-case for xsl:merge?

Subject: Re: [xsl] A use-case for xsl:merge?
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 15 Feb 2019 19:18:32 -0000
On 15.02.2019 20:08, John Dziurlaj john@xxxxxxxxxxxxxxxx wrote:


<draw name="Text1" usehref="/proto/draw[name = *'TextStyle1'*]">

THE PROTOTYPE ITSELF:

<draw name="*TextStyle1*" w="29.2864mm" h="5.2331mm">

The expected result is a combination of all the elements under draw (order of occurrence at any level does not matter). If an element or attribute is defined by both the prototype and its referrer, the referring particle should take precedence.

EXPECTED COMBINED RESULT:

<draw name="Text1" vAlign="top" h="5.2331mm" w="29.2864mm">

Where does the vAlign="top" come from?



Are the possible child elements and their attributes or even grandchild elements known?


Can it happen that there are several of those elements (e.g. several "font" or "value")?

Current Thread