xsl-list
[Top] [All Lists]

Re: Spotting "cousin marriages" in a tree

2004-07-29 09:03:23
David Carlisle wrote:
It works in saxon:

$ saxon keys.xsl keys.xsl
<?xml version="1.0" encoding="utf-8"?>A

David,

I've just realised that by supplying the same XSLT file as the "input" XML, as you have done, you're changing the situation as the XSLT contains the same nodes within the definition of the variable. Please try this again with an input file containing just a <foo/> node. Here is what I get with xsltproc:

$ xsltproc keytest.xslt keytest.xslt
<?xml version="1.0"?>
A

$ xsltproc keytest.xslt foo.xml
$


Cheers,

--Phil.