I
Ian Clifton
I'm trying to learn XSLT2.0/Xpath2.0 . In one of my efforts, I tried to
write <xsl:number select="parent::."/> which is incorrect syntax. I
found that <xsl:number select=".."/> does what I wanted perfectly. From
studying the Xpath syntax tree, I can understand why this happens, but I
don't "get" it: can anyone explain why "." and ".." have such different
roles in Xpath's syntax?
Thanks,
write <xsl:number select="parent::."/> which is incorrect syntax. I
found that <xsl:number select=".."/> does what I wanted perfectly. From
studying the Xpath syntax tree, I can understand why this happens, but I
don't "get" it: can anyone explain why "." and ".." have such different
roles in Xpath's syntax?
Thanks,