xsl-list
[Top] [All Lists]

Re: [xsl] Compare only XML Element between two files

2008-12-26 12:28:10
This will give you the required result,

<xsl:value-of select="$file2//*[not(name() = $file1//*/name())]/name()" />

This would require XSLT 2.0.

On Fri, Dec 26, 2008 at 12:57 PM, Byomokesh Sahoo
<sahoo(_dot_)byomokesh(_at_)gmail(_dot_)com> wrote:
Dear All,

I am searching the solution to compare only XML Element not text. If
any extra tag is found in file2.xml it will showing the tag name. Is
it possible using XSL.

file1 XML
=====
<TAG>
<LONGNAME/>
<PARCITE/>
<QLCITE/>
<COURTNAME/>
<COURTNUMBER1/>
<JUDGE/>
</TAG>

File2.xml
=======



<FILE>
<PARCITE/>
33 C.L.A.S. 664
<SAHOO/>
<QLCITE/>
[1994] O.L.A.A. No. 466

<LONGNAME/>
IN THE MATTER OF an Arbitration
</FILE>

I want showing the extra tag which is not available in file1.xml....

Anyone help me to find out this solution...

Thanks

Byomokesh


-- 
Regards,
Mukul Gandhi

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