What does 'reverse document order' mean?

Subject: What does 'reverse document order' mean?
From: Richard Light <richard@xxxxxxxxxxxxxxxxx>
Date: Wed, 15 Nov 2000 06:32:24 +0000
I've been working on a style sheet for rendering CALS-style tables as
HTML, and hit a problem with the preceding-sibling:: axis.  My
assumption was that, since preceding-sibling:: selects siblings in
'reverse document order', the first node in the set would be the one
immediately preceding the current node.

However, as this little test document shows (I think!), the opposite is
true - the node set orders the preceding siblings in forward, not
reverse, order.  The same appears to be true of the preceding:: axis.

I've tested this with both MSXSL and Instant Saxon - the results are the
same.

Am I guilty of muddled thinking, or inadequate study of the spec?  Or is
there some subtlety that I am missing?

Richard Light.

[ Section: 1/1 File: siblings.xml UUencoded by: Turnpike Version 4.01  ]

begin 644 siblings.xml
M/#]X;6P@=F5R<VEO;CTG,2XP)S\^#0H\/WAM;"US='EL97-H965T('1Y<&4]
M(G1E>'0O>'-L(B!H<F5F/2)S:6)L:6YG<RYX<VPB/SX-"CQD;V,^#0H\9W)O
M=7`^#0H\96QT/D$\+V5L=#X-"CQE;'0^0CPO96QT/@T*/&5L=#Y#/"]E;'0^
M#0H\96QT/D0\+V5L=#X-"CQE;'0^13PO96QT/@T*/&5L=#Y&/"]E;'0^#0H\
1+V=R;W5P/@T*/"]D;V,^#0H`
`
end

sum -r/size 62556/303 section (from "begin" to "end")
sum -r/size 13081/197 entire input file
[ Section: 1/1 File: siblings.xsl UUencoded by: Turnpike Version 4.01  ]

begin 644 siblings.xsl
M/#]X;6P@=F5R<VEO;CTG,2XP)S\^#0H\>'-L.G-T>6QE<VAE970-"B`@>&UL
M;G,Z>'-L/2)H='1P.B\O=W=W+G<S+F]R9R\Q.3DY+UA33"]4<F%N<V9O<FTB
M(`T*("!V97)S:6]N/2(Q+C`B/@T*#0H\>'-L.G1E;7!L871E(&UA=&-H/2)E
M;'0B/@T*(#QX<VPZ=F%R:6%B;&4@;F%M93TB<VEB;&EN9RUP<F5C961E<G,B
M('-E;&5C=#TB<')E8V5D:6YG+7-I8FQI;F<Z.F5L="(O/@T*(#QX<VPZ=F%R
M:6%B;&4@;F%M93TB86QL+7!R96-E9&5R<R(@<V5L96-T/2)P<F5C961I;F<Z
M.F5L="(O/@T*(#QP/CQX<VPZ=F%L=64M;V8@<V5L96-T/2(N(B\^(&ES('!R
M96-E9&5D(&)Y("AS:6)L:6YG<RD-"B`@/'AS;#IF;W(M96%C:"!S96QE8W0]
M(B1S:6)L:6YG+7!R96-E9&5R<R(^#0H@("`\>'-L.G9A;'5E+6]F('-E;&5C
M=#TB+B(O/B`\>'-L.FEF('1E<W0](G!O<VET:6]N*"DF;'0[;&%S="@I(CX@
M86YD(#PO>'-L.FEF/@T*("`\+WAS;#IF;W(M96%C:#X@86YD("AA;&P@96QT
M)W,I#0H@(#QX<VPZ9F]R+65A8V@@<V5L96-T/2(D86QL+7!R96-E9&5R<R(^
M#0H@("`\>'-L.G9A;'5E+6]F('-E;&5C=#TB+B(O/B`\>'-L.FEF('1E<W0]
M(G!O<VET:6]N*"DF;'0[;&%S="@I(CX@86YD(#PO>'-L.FEF/@T*("`\+WAS
M;#IF;W(M96%C:#X@(`T*(#PO<#X-"CPO>'-L.G1E;7!L871E/@T*#0H\+WAS
/;#IS='EL97-H965T/@T*
`
end

sum -r/size 15337/981 section (from "begin" to "end")
sum -r/size 35864/690 entire input file


Richard Light
SGML/XML and Museum Information Consultancy
richard@xxxxxxxxxxxxxxxxx


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread