Subject: Re: [xsl] unfold one element to several elements according to its attribute From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Sun, 25 May 2008 19:17:56 +0200 |
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:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:template match="root"> <xsl:copy> <xsl:apply-templates/> </xsl:copy> </xsl:template>
Martin Honnen http://JavaScript.FAQTs.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] unfold one element to several, mixhere | Thread | Re: [xsl] unfold one element to sev, Mukul Gandhi |
[xsl] unfold one element to several, mixhere | Date | Re: [xsl] unfold one element to sev, Mukul Gandhi |
Month |