xsl-list
[Top] [All Lists]

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

2019-02-15 13:18:37
On 15.02.2019 20:08, John Dziurlaj john(_at_)hiltonroscoe(_dot_)com 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")?
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>