Subject: Re: [xsl] Comparing attributes and setting the values From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 22 Aug 2014 09:20:35 -0000 |
I have posted the details in the above mails. But I can give you the details. I am trying to merge 2 xml files which is having "level" attribute. The condition is, if the level attribute is equal in the same xml file then it should set the same level for that element. But if the level attribute is having different value then it should print the next value in sequential order.
<xsl:param name="doc2-uri" select="'file2.xml'"/> <xsl:variable name="doc2" select="document($doc2-uri)"/>
<xsl:variable name="merge-doc"> <Move-Afile> <Afile> <xsl:copy-of select="//Item"/> <xsl:copy-of select="$doc2//Item"/> </Afile> </Move-Afile> </xsl:variable>
<xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template>
<PNumber> <xsl:value-of select="."/> </PNumber> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Comparing attributes and , varun bhatnagar varu | Thread | Re: [xsl] Comparing attributes and , Michael Müller-Hille |
Re: [xsl] Xpath conundrum for the p, Michael Kay mike@xxx | Date | Re: [xsl] Comparing attributes and , varun bhatnagar varu |
Month |