DeltaXML Support Forums
| new topic post reply | XML Technologies -> Filters -> Ignore an element |
Ignore an element | |
Posted:
27-June-2008 007:47 I would like to know how to ignore an element. Defining keys based on the id attribute is not appropriate in this case. Could you provide me some samples for ignoring an element? | |
Re: Ignore an element | |
Posted:
27-June-2008 16:07 Hi Arul, Thanks for the question. There are various ways to ignore an element during the comparison. I have outlined a couple below. The simplest solution is to remove the element you wish to ignore before comparing. All this requires a simple input filter. It does mean that the element isn't in the result file at all, this may of course not be what you require. Another possible solution is to leave the element in for comparison but then convert it back to the version that was in one of the input documents. This requires an output filter and again, this should be relatively easy to write. Take a look at dx2-extract-version.xsl in the xsl samples directory for an example of how to output a particular version of an element (or in the case of the XSL filter, the whole file). These are just a couple of suggestions, if you could provide a more detailed example of what you are trying to achieve, we will be able to give you some more relevant help with a solution. Many thanks, Tristan | |
| new topic post reply |
To find out about new replies to this post as they occur please subscribe to one of these feeds: | ![]() ![]() | moderate |
Ignore an element 
