I'd be writing a follow-up simple XSL which lists all the IDs in the original, and all the IDS in the new file, and compares the two lists.
I am quite certain that you'll need to extend it to more checks anyway, as you'll be after checking text and attributes
and comments and uncle tom cobbley and all.

Some may be interested in http://jtei.revues.org/pdf/722, an article by Brian L. Pytlik Zillig
addressing the problem of comparing two XML texts and seeing whether anything has got lost.

Sebastian


On 22 July 2014 09:50, <mike@saxonica.com> wrote:

I think it would be quite hard to find a sufficiently useful definition of "fetched". Would you mean "selected by some apply-templates call", or would you also count "selected by an xsl:for-each", or xsl:for-each-group, or xsl:copy-of...

One thing you could try would be to write a TraceListener. This is notified of every node in the source document that becomes the context item: which would cover xsl:apply-templates and xsl:for-each, but not xsl:copy-of.

Michael Kay

Saxonica

 

> Hello Team
>
> Is there a way using Saxon by which I can get a log on all the IDs of
> elements that are fetched from my XSLT?
>
> I keep writing XSLTs that transforms XML to HTML. Ideally the whole
> content
> from the XML should be transformed. But sometimes I accidentally miss
> certain xpaths and because of that those elements wont come out in HTML. I
> am looking for ways by which I can check the element coverage. If I get
> the
> log on all IDs of elements that are fetched by XSLT I can easily find out
> what are not fetched. Is there a possibility in Saxon? Please help.
>
> Thanks
> Srikanth
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds_______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> saxon-help@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/saxon-help


------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help



--

Sebastian Rahtz      

Director (Research) of Academic IT

University of Oxford IT Services

13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431


Não sou nada.

Nunca serei nada.

Não posso querer ser nada.

À parte isso, tenho em mim todos os sonhos do mundo.