Commit graph

888 commits

Author SHA1 Message Date
jez
2e1b775e71 changed the handling of RelativeLocationPath token when building a step list. There might be things following the path, and must take them into account. Test position89 exposed a problem prompting this change. 2008-05-28 15:08:35 +00:00
jez
8eec99f4b4 annotated position skips 2008-05-28 14:10:23 +00:00
jez
53fbf26ff0 Correctly implemented Namespace Nodes.
The XPath data model requires that namespace nodes are associated with an element, and sort ahead of attribute nodes in document order.  Until now, Arabica's namespace node had no parent, or owner document and so was failing these requirements.  The Xalan position111 test case highlights this requirement.
2008-05-28 08:53:21 +00:00
jez
5d7f3364ba Visual Studio, how I curse your useless warning C4800 2008-05-28 08:45:25 +00:00
jez
120905f3ac 2008-05-27 20:26:51 +00:00
jez
f89a2be3cc fix in MultiplicativeExpr rule for Boost 1.35 2008-05-04 18:10:03 +00:00
jez
dee85af224 fixes to help out-of-tree builds 2008-05-04 14:42:09 +00:00
jez
261f589f47 2008-05-04 14:41:23 +00:00
jez
51e4cad4a0 marked functions as inline as requested, although not entirely sure if it should be necessary :) 2008-04-28 09:13:49 +00:00
jez
84d7d9390a spelled underlying_impl wrong all these years and never realised, start work on sorting namespace nodes ahead of attribute nodes 2008-04-23 14:41:00 +00:00
jez
c6564e798c added missing typename 2008-04-23 14:39:11 +00:00
jez
f818f192af fixed match rewriting when there are leading predicates - http://www.jezuk.co.uk/jez/2008April#3711 2008-04-18 09:11:51 +00:00
jez
a049a72c08 fixed sorting bug when reverse sorting a nodeset which includes the root node 2008-04-17 20:32:32 +00:00
jez
68301e8878 added a couple of ancestor tests 2008-04-17 09:54:55 +00:00
jez
b569dbb43e rejigged things so that it doesn't core dump on exit. it's always nice when things exit cleanly 2008-04-16 22:10:01 +00:00
jez
22b58776e0 minor text files update 2008-04-07 21:13:28 +00:00
jez
9ea360f3ef collapsed tagsoup-port into mainline 2008-04-07 15:37:47 +00:00
jez
1468d9f822 bumped to indeterminate :) version number 2008-04-06 19:35:49 +00:00
jez
de21459681 fix for problem with installing headers on FreeBSD, where install doesn't understand -D. Thanks to Alex Ott. 2008-03-26 16:33:44 +00:00
jez
ebbd739051 initialise lexicalHandler_ 2008-02-08 16:01:38 +00:00
jez
71b7af819f xsl:sort - blow up if we get a lang attribute 2008-01-19 22:45:48 +00:00
jez
3441a1271e 2007-12-30 22:33:14 +00:00
jez
adc1150712 2007-12-29 23:35:01 +00:00
jez
462274002e updated 2007-12-29 22:30:34 +00:00
jez
7bd88a7bbe 2007-12-25 22:23:25 +00:00
jez
16e8a45e86 added fails for XSLTFunctions 2007-12-25 21:58:52 +00:00
jez
0850f50269 tweaking document order across documents - not for any better reason than making a test case pass 2007-12-25 21:56:28 +00:00
jez
b3939f14ab removed IBM437 encoding declaration - WTF is IBM427 anyway 2007-12-25 20:54:42 +00:00
jez
934a03e703 oops - ncnames don't contain colons 2007-12-23 22:52:39 +00:00
jez
27d23630ce fixed test 2007-12-23 21:32:04 +00:00
jez
95a3a42002 can see it now - uninitialised variable 2007-12-23 09:51:28 +00:00
jez
2e6c372933 hacked up a ncname test, although it's not working at the moment and I'm tired and can't think 2007-12-22 22:21:26 +00:00
jez
12b6b5dd92 2007-12-22 18:27:23 +00:00
jez
432191dfbe 2007-12-21 17:03:09 +00:00
jez
be877b8d50 MSVC can't handle static members in nest classes of template classes 2007-12-21 17:02:12 +00:00
jez
235f81718d Added Expression_scanner and scan (a visitor pattern basically) to allow XPathExpression_impls to be examined. This is used in the match rewriting to search for position() and last() function calls.
To ease implementing scan, BinaryExpression and UnaryExpression now inherit XPathExpression_impl.  Other classes now derived only from Binary|UnaryExpression rather than from XPathExpression_impl as well.
2007-12-21 15:56:04 +00:00
jez
ccade5d5f5 added xpath_match_rewrite.hpp 2007-12-21 14:28:24 +00:00
jez
a2ecaa6b46 added xslt_test.cpp 2007-12-21 14:28:06 +00:00
jez
a8ce93f89b First proper go at rewriting positional matches. 2007-12-21 14:13:36 +00:00
jez
cbc9cf3797 it's late 2007-12-20 23:24:16 +00:00
jez
f87c01fc53 2007-12-20 16:23:56 +00:00
jez
cdac22542e added type() to XPath expressions. I need this to allow XSLT match patterns to be rewritten properly - see http://www.jezuk.co.uk/cgi-bin/view/arabica/log?id=3546 - but it will also be useful for compile time checking (should I get sufficiently keen :) 2007-12-18 23:03:16 +00:00
jez
fc982bf8e8 return pass/fail to environment 2007-12-08 21:20:28 +00:00
jez
3c13a1af81 return pass/fail to environment 2007-12-08 20:47:53 +00:00
jez
29a3d1f63b add test for windows file path 2007-12-08 20:47:32 +00:00
jez
115abdb35b special case for windows file paths 2007-12-08 20:47:01 +00:00
jez
ad597b2374 minor change to return pass/fail from run 2007-12-08 20:46:40 +00:00
jez
02fe02da03 "If the parser has not read a declaration for the attribute, or if the
parser does not report attribute types, then it must return the value
"CDATA" as stated in the XML 1.0 Recommentation (clause 3.3.3,
"Attribute-Value Normalization")."

and:
"Returns: The attribute's type as a string, or an empty string if the
index is out of range."

Problem found reported by Christoph Anderegg, christoph@anderegg-sommer.ch
and corrected with this commit.
2007-12-07 23:28:59 +00:00
jez
6d0c134c61 - 2007-12-01 21:52:15 +00:00
jez
e659f3cce4 changed scope of StackFrame for apply templates 2007-11-26 23:17:11 +00:00