RE: [xsl] ../preceding-sibling/SubDiv1" does not seem to work

Subject: RE: [xsl] ../preceding-sibling/SubDiv1" does not seem to work
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 9 Mar 2009 20:46:08 -0000
I tried ../preceding-sibling/SubDiv1 = SubDiv1, 
> but the first part of the expression does not work. What have 
> I misunderstood?

You don't have any elements named preceding-sibling.

You meant preceding-sibling::*, that is, elements of any name on the
preceding-sibling axis.

If only people would write schema-aware code, such errors would be caught so
much more easily!

Michael Kay
http://www.saxonica.com/

Current Thread