[XSL-LIST Mailing List Archive Home]
[Reply To This Message]
Re: Filtering new tags
hi Gandi and all,
yes you are absolutely correct but I am not getting only newly added
text, I am getting old tags + newly added tags. I am using MS XSLT
- Buddhi -
Mukul Gandhi wrote:
I think, you want (records from new file - records from old file),
Your stylesheet looks fine to me. I get correct output with Xalan-J 2.7.1.
Probably, you need to explain more clearly about the requirement.
On 1/25/08, buddhi <buddhi@xxxxxxxxxxxxxxxxxxx> wrote:
I have a xml file with following tag sets
I have two xml files with this, but both are not equivalent. One is a
old file and other one is the new file, where set of those tag set are
added here and there in the doc (not only to the end of the document) I
wanted to extract those newly added tag sets to a separate file after
transformation. I mad ea one XSL, but it takes the old file and append
new tags to it. I want only the new tags.
<xsl:variable name="old-doc" select="document('old.xml')" />
<xsl:variable name="temp" select="." />
<xsl:if test="not($old-doc/root/data[@name = $temp/@name])">
<xsl:copy-of select="$temp" />
Please help me on this.
- Buddhi -
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format