xsl-list
[Top] [All Lists]

[xsl] unfold one element to several elements according to its attribute

2008-05-25 10:07:16
Hello everyone,
is it possible to do the translation? you can add other
elements/attributes in the original xml if the info is not enough.
thanks.

Original:
<product id="1" owner="a,b,c">
<title owner="a,b">foo</title>
<title owner="c">bar</title>
</product>

After translation:
<product id="1" owner="a">
<title>foo</title>
</product>
<product id="1" owner="b">
<title>foo</title>
</product>
<product id="1" owner="c">
<title>bar</title>
</product>

--~------------------------------------------------------------------
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>
--~--

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