Commit graph

151 commits

Author SHA1 Message Date
jez
82f22d9dd3 changes to variable scoping in xsl:for-each, xsl:if, and xsl:choose. 2007-11-01 22:28:20 +00:00
jez
a52aafebd5 In XPath node() matches any node of any type. In an XSLT match pattern, node() matches everything except attributes and the document root node. Tweaked that match pattern grammar to introduce a new token in the AST. 2007-10-26 23:24:58 +00:00
jez
adbdb31f65 passed parameters are now unpassed when they aren't needed any more, removing them from the current stack frame. that may not match you idea of what a stack frame actually is (mine too, if I'm honest) but it's a straightforward change to fix a bug 2007-10-26 23:21:21 +00:00
jez
0167bd53c1 XSLT: template mode is now a QName 2007-10-26 19:12:27 +00:00
jez
b45e512845 XSLT: template names are now QNames 2007-10-26 12:28:48 +00:00
jez
3e246cb85a xsl:apply-imports - params are not passed on through an xsl:apply-imports call 2007-10-25 22:08:31 +00:00
jez
229a859c91 whitespace change 2007-10-25 20:58:27 +00:00
jez
fa235dc7af Fixed to AttributesImpl.getIndex from Isak Johnsson. Thanks go to him and a "what on earth was I thinking" to me. 2007-10-25 20:57:40 +00:00
jez
af3ebfde60 s/XPathExpressionPtr/XPathExpression/g 2007-10-25 20:42:00 +00:00
jez
a7d050841d s/XPathExpression/XPathExpression_impl/ 2007-10-23 21:37:24 +00:00
jez
fac7cf88de XPathExpressionPtr no longer derives from boost::shared_ptr, it contains it instead 2007-10-22 20:25:35 +00:00
jez
f6b2ed4966 OK, I think that's it. XPathValue is now your man. Existing code using XPathValuePtr should still work, but new stuff should use XPathValue 2007-10-22 17:42:50 +00:00
jez
6e2f594dc9 more reworking on XPathValuePtr -> XPathValue. XPathValue contains rather than derives from boost::shared_ptr. Added operator== so can still compare to 0 to see if the value is null or not. 2007-10-22 14:10:49 +00:00
jez
9b32ed13e4 Some time ago, it was gently suggested to me that XPathValuePtr and XPathExpressionPtr both exposed an implementation detail, because they derive fromboost::shared_ptr, and provided an interface that was inconsisted with the DOM classes, because you accessed the member functions via -> rather than .
At the time, I was just pleased to have got the XPath stuff done and wasn't really fussed, so I left it.  Since then though, it's niggled and niggled away at the back of my mind and now I've decided to do something about it.

XPathValuePtr will become XPathValue, with the member functions accessed through the . operator.  The XPathValuePtr name and -> member access will be retained for the meantime, so that existing code won't be broken.  XPathExpressionPtr will be similarly changed.

This commit is the first bit of that work, now I've satisfied myself it's going to be pretty easy so long as I pay proper attention.
2007-10-19 21:59:24 +00:00
jez
3f156c9fcf reworked MatchExpr so that it doesn't expose its inner XPathExpression 2007-10-14 20:06:27 +00:00
jez
3d5c7995cb added value_type typedef as per Evan Burkitt's suggestion 2007-10-05 14:56:26 +00:00
jez
889305618e fixes for older gcc 2007-09-28 08:30:16 +00:00
jez
494493d1c2 fixed template parameters in libxml2 binding 2007-09-25 21:43:25 +00:00
jez
6d76412103 fixed namespaces declaration 2007-09-25 19:17:58 +00:00
jez
c8a8be2fb7 fixed codecvt specialisation include paths 2007-09-19 17:33:23 +00:00
jez
1ffe707532 fixed codecvt specialisation include paths 2007-09-19 17:30:48 +00:00
jez
f213c402cd moved DOM streaming from Utils/ to io/ 2007-09-13 21:21:55 +00:00
jez
2a61c8f9df removed redundant includes 2007-09-11 08:44:00 +00:00
jez
723ef90108 the last, I think, of the namespace shuffling business 2007-09-11 08:32:54 +00:00
jez
c3bffa005a renamed include/Utils to include/Arabica 2007-09-10 17:52:04 +00:00
jez
8fe1e5f9c5 moved convert_adaptor and convertstream into Arabica::io namespace 2007-09-10 17:39:52 +00:00
jez
0525191ebe move convert_adaptor.hpp and convertstream.hpp into io subdirectory 2007-09-10 17:32:43 +00:00
jez
17248585af more namespace and file moving shenanigans 2007-09-10 17:24:17 +00:00
jez
3a1a0ae9de moved from Arabica::Internal namespace to Arabica::convert::impl namespace 2007-09-10 16:27:43 +00:00
jez
caebe3f63e moved codecvt facets into convert subdirectory 2007-09-10 16:21:31 +00:00
jez
6c8549e923 Moved socket_stream.hpp into io directory
Moved socketstream into Arabica::io namespace
2007-09-10 16:02:42 +00:00
jez
2ef3dffa7d moved URI into io subdirectory 2007-09-10 15:58:45 +00:00
jez
cc3ffc1a79 added extra template parameters 2007-09-10 08:19:44 +00:00
jez
63ed794d58 finished adding string adaptor param to DOM. everything builds and runs now 2007-09-08 22:31:24 +00:00
jez
63e18542a8 Fix for GCC on tiger
see http://sourceforge.net/mailarchive/forum.php?thread_name=m2sl5p4o2a.fsf%40gmail.com&forum_name=arabica-devel
2007-09-08 08:16:24 +00:00
jez
7b43037a37 Added string_adaptor parameter to DOM classes. DOM and XPath tests compile and run, but still need to add defaults so more "normal" bits of code will go. 2007-09-07 23:52:30 +00:00
jez
90685582ea working on DOM template params - build is currently broken 2007-09-07 22:03:27 +00:00
jez
bbcf3e1001 all SAX classes now take both string_type and string_adaptor. everything builds through. tests pass 2007-09-06 18:54:02 +00:00
jez
8e0c0ec4f0 template param fixes for garden 2007-09-06 15:07:16 +00:00
jez
905d680b3d more template stuff 2007-09-06 10:51:50 +00:00
jez
77c2d74398 more template parameter malarkey 2007-09-06 09:04:01 +00:00
jez
abca0daf9a first pass adding string_adaptor parameter 2007-09-05 22:08:51 +00:00
jez
635707cdde built through with expat, libxml2, xerces, and garden 2007-09-05 13:54:04 +00:00
jez
a76b137b60 removed basic_ prefixes from SAX classes, removed typedefs 2007-09-05 12:57:07 +00:00
jez
7d46f6f4e2 Moved DOM:: into Arabica::DOM:: 2007-09-05 11:47:13 +00:00
jez
a6c116acd6 moved SAX:: into Arabica::SAX:: 2007-09-05 09:49:18 +00:00
jez
7cf3897061 renamed all .h to .hpp 2007-09-04 22:55:47 +00:00
jez
9cd4752c00 Prevent hierarchy exception if the parser reports the DTD as a skipped entity 2007-08-26 23:12:49 +00:00
jez
83c34592f3 2007-08-25 11:51:29 +00:00
jez
ccde3a8404 pass through prefix mappings too, so we pick up the namespace declatations in included docs 2007-08-25 09:33:11 +00:00
jez
320344dfec set base URI correctly on included stylesheets, while also respecting xml:base (like Saxon, but not like msxml and xalan, ner ner) 2007-08-24 12:37:32 +00:00
jez
70910a56de allow non xsl elements as children of xsl:stylesheet 2007-08-24 08:52:12 +00:00
jez
9d70b5c1c0 now handles document('') 2007-08-24 08:51:31 +00:00
jez
9a6a8e0a9c no need trim because we do that when resolving relative paths anyway 2007-08-24 08:50:58 +00:00
jez
d63b9a504c make document(url) respect base URI 2007-08-23 13:55:06 +00:00
jez
f036ba1b64 pulled out stylesheet parser into a seperate class 2007-08-22 12:38:20 +00:00
jez
e95b455b83 check select returns a node-set 2007-08-22 12:23:38 +00:00
jez
1108d7f5de whitespace changes 2007-08-22 12:22:57 +00:00
jez
dc6a3ad454 fixed #includes 2007-08-22 12:22:09 +00:00
jez
0f2368368f corrected default constructor 2007-08-22 12:21:43 +00:00
jez
d4fe2c4c3a whitespace changes 2007-08-22 12:21:08 +00:00
jez
eaa1192967 corrected copyright dates 2007-08-20 20:24:13 +00:00
jez
733e9d3c3a Fixed for VS8/VS2005
See http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=101866
2007-08-10 10:35:17 +00:00
jez
c44d201148 reset parser so it can be reused 2007-08-07 21:43:36 +00:00
jez
3d3fbaedce pass through skippedEntity and processingInstruction 2007-08-07 21:29:27 +00:00
jez
6aa07ebbd2 reset parser after a parse, allowing it to be reused 2007-08-07 21:28:47 +00:00
jez
f900c435e6 extended to take std::auto_ptr<iostream> as well as std::auto_ptr<std::istream> 2007-08-07 21:27:55 +00:00
jez
645247287d see http://www.jezuk.co.uk/cgi-bin/view/SAX/news?id=3285 2007-08-07 14:43:44 +00:00
jez
54eaa547da merged with mangle-dev branch 2007-07-19 17:01:57 +00:00
jez
d30bba750e merged with mangle-dev branch 2007-07-19 17:01:42 +00:00
jez
b95e3afeb2 merged with mangle-dev branch 2007-07-19 17:01:31 +00:00
jez
9606354b41 merged with mangle-dev branch 2007-07-19 17:01:19 +00:00
jez
7c4dcfde39 merged with mangle-dev branch 2007-07-19 17:01:08 +00:00
jez
d17b0e927f 2007-06-20 00:06:56 +00:00
jez
968127deb0 garden fixes 2007-06-18 12:01:47 +00:00
jez
7a88d7d60a use DefaultHandler instead of DefaultHandler2 2007-01-19 15:54:18 +00:00
jez
49301e2eba stop allocating a buffer everytime we do a conversion 2007-01-19 15:53:46 +00:00
jez
004d0c4f41 better string handling - on platforms where sizeof(XMLCh) == sizeof(wchar_t) we should be able to eliminate the copying step altogether 2007-01-19 15:52:43 +00:00
jez
ffd2a819db When ARABICA_NO_WCHAR_T defined, transcode to UTF-8 not native code page
Fix for http://sourceforge.net/tracker/index.php?func=detail&aid=1636010&group_id=56163&atid=479571
2007-01-18 20:49:19 +00:00
jez
290f9cf175 fixed Writer filter for new XMLFilterImpl with built in Lexical and Decl handlers 2007-01-15 17:38:55 +00:00
jez
0b178c17a7 Promoted LexicalHandler and DeclHandler to be full members of XMLReader, rather than properties set via the rather tortuous setProperty call. XMLFilter and XMLFilterImpl have been extended to provide support for Lexical~ and DeclHandler. DefaultHandler now provides default, do nothing, implementations of Lexical~ and DeclHandler. Consequently DefaultHandler2 is now deprecated and will be removed in due course.
Merged from mangle branch.
2007-01-15 14:21:33 +00:00
jez
c452b5ba91 added more MSXML version ids. more recent versions can do things like schema validation 2007-01-15 14:02:52 +00:00
jez
3a18023963 TreeWalker: C++ compliance fixes 2007-01-12 14:52:14 +00:00
jez
ed46fc0f01 TreeWalker patches from craigp. 2007-01-02 11:32:48 +00:00
jez
d1ca51079f add more TreeWalker tests, including one with a NodeFilter 2006-12-14 19:34:48 +00:00
jez
664f6fd116 added TreeWalker implementation, dondated by craigp 2006-12-14 15:06:36 +00:00
jez
78c783b7c1 bug fix to Attr::setValue 2006-12-14 11:51:23 +00:00
jez
35851a0417 s/ARABICA_WINDOWS/ARABICA_USE_WINSOCK 2006-12-13 19:18:31 +00:00
jez
320ea0144b 2006-10-06 21:25:55 +00:00
jez
5623e8d39d jigged around to work when compiling without Boost 2006-10-06 21:17:17 +00:00
jez
0b0343611b added iterator header 2006-10-06 21:15:22 +00:00
jez
bd2921837d added initial project files for TurboC++ 2006-09-28 13:30:10 +00:00
jez
f4453c647d had inadvertantly broken the MSXML build 2006-09-20 13:57:50 +00:00
jez
f4df1879b1 remedial fixes so Garden compiles again 2006-09-20 11:43:30 +00:00
jez
f99c832140 rejigged to build without Boost - only tested with Expat so far 2006-09-13 21:56:21 +00:00
jez
331fb28ccf pulled nil_t out into own include file 2006-09-13 21:02:51 +00:00
jez
ecf4f74304 sept 2006 release 2006-09-12 21:21:48 +00:00
jez
828788bb72 pulled all the header files into include/ directory 2006-08-07 21:37:10 +00:00
jez
e6b160606c - 2006-08-07 21:17:01 +00:00
jez
bc0d1c9655 - 2006-08-07 21:16:27 +00:00