<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to news</title><link>https://sourceforge.net/p/arabica/news/</link><description>Recent posts to news</description><atom:link href="https://sourceforge.net/p/arabica/news/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 28 Nov 2012 09:48:59 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/arabica/news/feed.rss" rel="self" type="application/rss+xml"/><item><title>Arabica Release - 2012 November</title><link>https://sourceforge.net/p/arabica/news/2012/11/arabica-release---2012-november/</link><description>&lt;p&gt;Since putting the Arabica source up on &lt;a href='https://github.com/jezhiggins/arabica'&gt;GitHub&lt;/a&gt; there seems to have been a little surge in interest in it.  It might be coincidence, of course, but I've received several emails and patches of the past few weeks.  Once of those emails prompted me to do something I'd been putting off - parameterise the XSLT engine on string type.  All the rest of the library is as string type agnostic as I could make it, allowing you to plug in std::string, std::wstring, or whatever other string class you might fancy.  (In testing, I actually use a string type with no public member functions.)  The XSLT engine was the last hold out, but no more and for the better.&lt;/p&gt;
&lt;p&gt;
  If you've been using the XSLT engine what this means is that where you wrote
&lt;pre&gt;
    Arabica::XSLT::StylesheetCompiler compiler = ...
    std::auto_ptr&amp;lt;Arabica::XSLT::Stylesheet&amp;gt; stylesheet = ...
&lt;/pre&gt;
you now have to write
&lt;pre&gt;
    Arabica::XSLT::StylesheetCompiler&amp;lt;std::string&amp;gt; compiler = ...
    std::auto_ptr&amp;lt;Arabica::XSLT::Stylesheet&amp;lt;std::string&amp;gt; &amp;gt; stylesheet = ...
&lt;/pre&gt;
If you haven't been using the XSLT engine because the rest of your application uses std::wstring, then now there's nothing to stop you.  Dive in!
&lt;/p&gt;

&lt;p&gt;Source tar.bz2&lt;br/&gt;
&lt;a href='http://sourceforge.net/projects/arabica/files/arabica/November-12/arabica-2012-November.tar.bz2/download'&gt;http://sourceforge.net/projects/arabica/files/arabica/November-12/arabica-2012-November.tar.bz2/download&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Source tar.gz&lt;br/&gt;
&lt;a href='http://sourceforge.net/projects/arabica/files/arabica/November-12/arabica-2012-November.tar.gz/download'&gt;http://sourceforge.net/projects/arabica/files/arabica/November-12/arabica-2012-November.tar.gz/download&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Source zip&lt;br/&gt;
&lt;a href='http://sourceforge.net/projects/arabica/files/arabica/November-12/arabica-2012-November.zip/download'&gt;http://sourceforge.net/projects/arabica/files/arabica/November-12/arabica-2012-November.zip/download&lt;/a&gt;
&lt;/p&gt;

</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jez Higgins</dc:creator><pubDate>Wed, 28 Nov 2012 09:48:59 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netbc6d73272af5a2ec562059db500a8907805d3b74</guid></item><item><title>Arabica October 2008 Release</title><link>https://sourceforge.net/p/arabica/news/2008/10/arabica-october-2008-release/</link><description>The &amp;quot;Probably long overdue release&amp;quot; bringing a big chunk of new functionality.

Source tar.bz2
http://downloads.sourceforge.net/arabica/arabica-2008-october.tar.bz2

Source tar.gz
http://downloads.sourceforge.net/arabica/arabica-2008-october.tar.gz

Source zip
http://downloads.sourceforge.net/arabica/arabica-2008-october.zip
Exciting New Stuff

The exciting new stuff is Taggle, a port of John Cowan's rather super TagSoup package.

TagSoup, if you're not familiar with it, is

    a SAX-compliant parser written in Java that, instead of parsing well-formed or valid XML, parses HTML as it is found in the wild: poor, nasty and brutish, though quite often far from short. TagSoup is designed for people who have to process this stuff using some semblance of a rational application design. By providing a SAX interface, it allows standard XML tools to be applied to even the worst HTML. 

Obviously, if you have a SAX parser you can apply all your standard XML techniques - not only SAX filters, but building a DOM, applying XPaths, or XSLT transformations as well.

Cowan describes what TagSoup does as

    TagSoup is designed as a parser, not a whole application; it isn't intended to permanently clean up bad HTML, as HTML Tidy does, only to parse it on the fly. Therefore, it does not convert presentation HTML to CSS or anything similar. It does guarantee well-structured results: tags will wind up properly nested, default attributes will appear appropriately, and so on.

    The semantics of TagSoup are as far as practical those of actual HTML browsers. In particular, never, never will it throw any sort of syntax error: the TagSoup motto is &amp;quot;Just Keep On Truckin'&amp;quot;. But there's much, much more. For example, if the first tag is LI, it will supply the application with enclosing HTML, BODY, and UL tags. Why UL? Because that's what browsers assume in this situation. For the same reason, overlapping tags are correctly restarted whenever possible: text like:

    This is &amp;lt;B&amp;gt;bold, &amp;lt;I&amp;gt;bold italic, &amp;lt;/b&amp;gt;italic, &amp;lt;/i&amp;gt;normal text
    gets correctly rewritten as:

    This is &amp;lt;b&amp;gt;bold, &amp;lt;i&amp;gt;bold italic, &amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;i&amp;gt;italic, &amp;lt;/i&amp;gt;normal text. 

Looks straightforward, doesn't it? Well, that's a simple example and it's still a tricky and awkward result in practice. Cowan's patience in persuing this and what looks like a rather elegant solution is to be applauded. Porting his code to C++ was quick and painless, and Taggle is a useful addition to Arabica. Thanks, John.

Arabica Taggle chews through HTML, providing the same SAX XMLReader interface as the XML parser, and can be used in exactly the same way. HTML source can be fed through SAX filter stacks, used to build DOM trees, queried with XPath, or transformed using XSLT.
Changes and Bug Fixes

There are, of course, many other fixes and changes. Most are relatively minor, and if you haven't been bitten by them you won't notice. The most significant changes are in Arabica's XSLT engine, Mangle. While still not feature complete and under development, it takes, in this release, a fairly big step forward.

SAX

    * Fixed AttributesImpl.getIndex. Thanks to Isak Johnsson for that, and what on earth was I thinking to me
    * Return attribute type as &amp;quot;CDATA&amp;quot; not the empty string
    * After all this time, realised I had too many template parameters on XMLReaderInterface. It only needs the string_type and string_adaptor. Any addition parameters are only of interest the implementing parser class

DOM

    * Output DocumentFragment properly
    * Output &amp;lt;elem/&amp;gt; for empty elements
    * Slipped a TextCoalescer filter into the DOM builder, so that consecutive bits of text get applied to a single Text or CDATA node, rather than as a series of nodes. (A series of nodes is perfectly legal, it's just slightly unexpected. Even to me, and I work with DOMs a lot :)

XPath

    * Some time ago, it was gently suggested to me that XPathValuePtr and XPathExpressionPtr both exposed implementation details and provided an interface that was inconsistent with the DOM classes, because you accessed the member functions via -&amp;gt; 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 done something about it. XPathValuePtr has become XPathValue and XPathExpressionPtr has become XPathExpression, with the member functions accessed through the . operator. The XPathValuePtr and XPathExpressionPtr name and -&amp;gt; member access are retained for the meantime, so that existing code won't be broken. Existing code using XPathValuePtr will still work, but new stuff should use XPathValue
    * 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 default namespace is included when constructing namespace nodes
    * Amazingly, the XPath prefix:* didn't compile. I had no test for it, and had overlooked it. Now I do, and it isn't
    * Unbound namespace prefixes throw an exception
    * Corrected text() test to match CDATA nodes as well as text nodes
    * XPaths are now evaluated as if the DOM had been normalised, even if it hasn't. That is, consecutive text nodes are treated as a single node

XSLT

    * Params are not passed on through an xsl:apply-imports call
    * Template names are now QNames
    * Template mode is now QName
    * In XPath node() matches any node of any type. In an XSLT match pattern, node() matches everything except attributes and the document root node. Fixed.
    * Fixed variable scoping in xsl:for-each, xsl:if, and xsl:choose
    * Escape naughty text when outputting processing instructions and comments (eg ---)
    * Use std::stable_sort instead of std::sort. When xsl:sort specifies a numerical sort, but you've got some string data in there we need to maintain the relative positions of that string data. This is the first time I can recall actually using std::stable_sort. I will mark it down in my big book of programming accomplishments.
    * Fixed local-name for namespace nodes
    * xsl:message can contain another xsl:message - now handled properly
    * Empty comments output correctly
    * Ensure xsl:choose has at lease one xsl:when
    * Make sure any xsl:template mode attribute is not empty
    * Verify xsl:sort attribute values
    * xsl:call-template now throws if it can't find a matching template
    * Duplicate variable and parameter names are rejected
    * Disallowed current() in match patterns
    * Verify xsl:for-each selects a node-set
    * Disallow pcdata ahead of an xsl:param
    * xsl:stylesheet now allows top-level elements when they are in a foreign namespace
    * Implemented position(), last() and positional predicates in match patterns
    * Throw error if transform is run with no input
    * Verify QNames at transform compile time
    * Detect circular variable references
    * Reject variables and parameters which have both a select attribute and text content
    * Top level variables and parameters handled according to import precedence
    * Fixed internal QName resolution - unprefixed names are not in the default namespace
    * Fixed xsl:element unprefixed names - when no namespace uri is supplied are in the default namespace
    * Don't suppress output of element namespace prefixes or attributes which are in the XSL namespace
    * ensure @xmlns|@xsmlns:* selects no nodes
    * direct information messages to std::cerr, not std::cout

Build and installation

    * Fix for problem installing headers on FreeBSD, where install doesn't understand -D
    * Changes to help out-of-tree builds
    * Added build files for Visual Studio 2008
    * Added configure tests for std::mbstate_t and/or mbstate_t. Some platforms don't have it (VxWorks, for example)
    * Visual Studio 2005 and 2003 project files are now munged from the Visual Studio 2008 files. (Don't try this at home, folks)

Other bits and bobs

    * Fixed for base URIs with leading ../
    * Convert \ to / for relative paths as well as absolute Windows paths.

</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jez Higgins</dc:creator><pubDate>Fri, 14 Sep 2012 21:33:48 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netf8fccbefc739555e80ab64e3bc25f4f23e70afa4</guid></item><item><title>Arabica October 2007 Release</title><link>https://sourceforge.net/p/arabica/news/2007/10/arabica-october-2007-release/</link><description>This release fixes a build problem with older versions of GCC.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jez Higgins</dc:creator><pubDate>Fri, 14 Sep 2012 21:33:48 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net19336868dcb1c79e807b7ec28905d96dc9f2dc08</guid></item><item><title>Arabica September 2007 Release 2</title><link>https://sourceforge.net/p/arabica/news/2007/09/arabica-september-2007-release-2/</link><description>This is a re-release of the September 2007 release which fixes a couple of build issues, affecting some 
platform/parser combinations.

The September 2007 release notes were:

The &amp;quot;certainly-break-your-build-but-it'll-be-easily-sorted-out&amp;quot; release.  
 
This is the first Arabica release ever that knowingly breaks existing code, 
but the changes required are all straightforward and shouldn't take more  
than a few minutes to recover from. 
 
The changes are  
 
a) All Arabica header files now have a .hpp extension. Existing references  
to something.h will need to be updated (or mitigated by added a forwarding  
header). 
 
b) The SAX namespace has been moved within the Arabica namespace. References  
to SAX::something will need to be changed to Arabica::SAX::something, or  
mitigated by a using declaration. 
 
c) The DOM namespace and associated namespaces, like SimpleDOM, have been moved  
within the Arabica namespace. References to DOM::something will need to be  
changed to Arabica::DOM::something, or mitigated by a using declaration. 
 
d) SAX classes named basic_something have been renamed something. Related typedefs 
along the lines of typedef basic_something&amp;lt;string&amp;gt; something; have been removed. 
References to SAX::something will need to be changed to SAX::something&amp;lt;std::string&amp;gt;,  
or mitigated by adding your own typedef. 
 
e) All SAX and DOM classes now take both a string and string adaptor template 
parameters. This change should be transparent and require no changes. 
 
f) Some header files in the Utils/ subdirectory have been moved: 
Utils/uri.hpp -&amp;gt; io/uri.hpp 
Utils/socket_stream.hpp -&amp;gt; io/socket_stream.hpp 
Utils/convert_adaptor.hpp -&amp;gt; io/convert_adaptor.hpp 
Utils/convertstream.hpp -&amp;gt; io/convertstream.hpp 
Utils/*codecvt.hpp -&amp;gt; convert/*codecvt.hpp 
Utils/normalize_whitespace.hpp -&amp;gt; text/normalize_whitespace.hpp 
XML/UnicodeCharacters.hpp -&amp;gt; text/UnicodeCharacters.hpp 
Utils/StringAdaptor.hpp -&amp;gt; Arabica/StringAdaptor.hpp 
DOM/Utils/Stream.hpp -&amp;gt; DOM/io/Stream.hpp 
 
There are some namespace changes along with these physical changes. Any class in  
Arabica::Utils has been moved into Arabica::io or Arabica::convert.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jez Higgins</dc:creator><pubDate>Fri, 14 Sep 2012 21:33:48 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netef27618717c392c8e6f20ce60a5ca5b29d31ae98</guid></item><item><title>Arabica September 2007 Release</title><link>https://sourceforge.net/p/arabica/news/2007/09/arabica-september-2007-release/</link><description>The &amp;quot;certainly-break-your-build-but-it'll-be-easily-sorted-out&amp;quot; release.  

This is the first Arabica release ever that knowingly breaks existing code,
but the changes required are all straightforward and shouldn't take more 
than a few minutes to recover from.

The changes are 

a) All Arabica header files now have a .hpp extension.  Existing references 
to something.h will need to be updated (or mitigated by added a forwarding 
header).

b) The SAX namespace has been moved within the Arabica namespace.  References 
to SAX::something will need to be changed to Arabica::SAX::something, or 
mitigated by a using declaration.

c) The DOM namespace and associated namespaces, like SimpleDOM, have been moved 
within the Arabica namespace.  References to DOM::something will need to be 
changed to Arabica::DOM::something, or mitigated by a using declaration.

d) SAX classes named basic_something have been renamed something.  Related typedefs
along the lines of typedef basic_something&amp;lt;string&amp;gt; something; have been removed.
References to SAX::something will need to be changed to SAX::something&amp;lt;std::string&amp;gt;, 
or mitigated by adding your own typedef.

e) All SAX and DOM classes now take both a string and string adaptor template
parameters.  This change should be transparent and require no changes.

f) Some header files in the Utils/ subdirectory have been moved:
  Utils/uri.hpp -&amp;gt; io/uri.hpp
  Utils/socket_stream.hpp -&amp;gt; io/socket_stream.hpp
  Utils/convert_adaptor.hpp -&amp;gt; io/convert_adaptor.hpp
  Utils/convertstream.hpp -&amp;gt; io/convertstream.hpp
  Utils/*codecvt.hpp -&amp;gt; convert/*codecvt.hpp
  Utils/normalize_whitespace.hpp -&amp;gt; text/normalize_whitespace.hpp
  XML/UnicodeCharacters.hpp -&amp;gt; text/UnicodeCharacters.hpp
  Utils/StringAdaptor.hpp -&amp;gt; Arabica/StringAdaptor.hpp
  DOM/Utils/Stream.hpp -&amp;gt; DOM/io/Stream.hpp

There are some namespace changes along with these physical changes.  Any class in 
Arabica::Utils has been moved into Arabica::io or Arabica::convert.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jez Higgins</dc:creator><pubDate>Fri, 14 Sep 2012 21:33:48 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net34298648b0764f8a3e13f1975fb2eaae619f0696</guid></item><item><title>Arabica August 2007 Release</title><link>https://sourceforge.net/p/arabica/news/2007/08/arabica-august-2007-release/</link><description>Here's the latest in what's becoming the tradional August Arabica release. It packages a number of incremental improvements, together with a major chunk of new code.

    * Code
          o This release includes the first release of Mangle, the Arabica XSLT engine. Still actively under development, mangle passes about 85% of the OASIS XSLT conformance test suite and covers most common cases. The Mangle code, in the Arabica::XSLT namespace, should be regarded as alpha quality.
          o There are a number of new SAX filters for whitespace stripping, tracking namespace declarations, tracking xml:base, and buffering multiple character(...) callbacks into a single callback.
    * Build
          o Further improvements to the Autotools build. The test cases can now be built and run using 'make check'. Wide string detection has been further tweaked, as has finding libxml2. Thanks to Bob Wilkinson for that.
          o Solution and project files for Visual Studio 2005 are now included.
          o Visual Studio builds now produce distinct debug and release versions of the library. Thanks to Timo Geusch and David Grigsby who separately suggested that.

This release has been built on a variety of platforms. Additional build reports are very welcome, particularly fon non-i386 platforms and/or non-GCC compilers.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jez Higgins</dc:creator><pubDate>Fri, 14 Sep 2012 21:33:48 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netddbe05139458a54907f86a4406461011a05a6e43</guid></item><item><title>Arabica January 2007 Release</title><link>https://sourceforge.net/p/arabica/news/2007/01/arabica-january-2007-release/</link><description>Happy New Year

Here's Arabica first release of 2007. It contains a number of incremental improvements, but nothing you might describe as startling

    * Build
          o Further improvements to the configure system. The build can now be configured without the Boost libraries in which case the XPath components are skipped. Parser detection is improved, as is detecting the correct libraries for sockets.
          o Added a Visual Studio solution file to build with Boost.
    * Code
          o Added TreeWalker and NodeFilter implementation, part of DOM Traversal. Thanks to craigp for that.
          o Beefed up the MSXML version checking. Thanks to Sten Darre for that.
          o Reworked the buffering in convertstream to reduce the number of dynamic allocations. This should make it quicker, and that will be particular noticeable on large documents. Thanks to Timo Guesch for profiling and suggesting the change.
          o LexicalHandler and DeclHandler are now part of the XMLReader interface. They can now be set directly, rather than fiddling around with setProperty and the strange casting that involved. XMLFilterImpl has been extended to support them, as has the DefaultHandler. DefaultHandler2 is now redundant and has been deprecated.

See you next time with some XSLT.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jez Higgins</dc:creator><pubDate>Fri, 14 Sep 2012 21:33:48 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net2b6395fe67ca2a029ba9a2d0e4ccda490eaac0b3</guid></item><item><title>Arabica September 2006 Release 3</title><link>https://sourceforge.net/p/arabica/news/2006/09/arabica-september-2006-release-3/</link><description>Another release. I feel giddy.

This release further improves the configuration options, allowing easier selection of the underlying XML parser library.

The Visual Studio 2003 solution and project files have been properly updated (something I unaccountably forgot to do), so that all the tests and examples are built. Compiling Arabica against MSXML also now compiles correctly again.

This release introduces no other new functionality.

Build reports are welcome. Do please drop me a line about how it goes on your particular OS/compiler/library combination to jez@jezuk.co.uk

Source tar.bz2
http://prdownloads.sourceforge.net/arabica/arabica-Sept2006-3.tar.bz2

Source tar.gz
http://prdownloads.sourceforge.net/arabica/arabica-Sept2006-3.tar.gz

Source zip
http://prdownloads.sourceforge.net/arabica/arabica-Sept2006-3.zip</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jez Higgins</dc:creator><pubDate>Fri, 14 Sep 2012 21:33:48 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net2ca9ec1e698a7f91d6fb8596fc08c3e8d12c9113</guid></item><item><title>Arabica September 2006 Release</title><link>https://sourceforge.net/p/arabica/news/2006/09/arabica-september-2006-release/</link><description>Frighteningly, I've just cut a new Arabica release, a mere month after the previous one. On the one hand I'm happy to announce this, because it's a quite significant. On the other I'm not, because the reason I've had time to do it is because the reason I've had the time is because I haven't had any work. Don't be afraid to get in touch if you need an extra pair of hands.

This release significantly simplifies the build procedure, as I've finally abandoned my increasingly unwieldy collection of Makefile variables in favour if GNU Autotools. Arabica has been autoconfiscated, so on any reasonable Unix box the familiar incantation of ./configure - make - make install will do the business.

The configure script will check for Expat, Libxml2 or Xerces, in that order, and use which ever it finds first. It also confirms the Boost libraries are available. Finally, it checks for std::wstring support. If std::wstring isn't available, then the appropriate bits of the build are turned off.

As part of autoconfiscating the build, the source tree has been rearranged slightly. The library source files have been split out from the header files, which makes it much easier to sort out installing the built library. The Visual Studio 7 solution files have also been moved out of the main tree into their own subdirectory.

This release introduces no new functionality or bug fixes.

The release has been successfully built on Linux, Cygwin, FreeBSD and DragonFly BSD. Built reports on other platforms, particularly those not using GCC, would be welcome.

Source tar.bz2
http://prdownloads.sourceforge.net/arabica/arabica-Sept2006.tar.bz2

Source tar.gz
http://prdownloads.sourceforge.net/arabica/arabica-Sept2006.tar.gz

Source zip
http://prdownloads.sourceforge.net/arabica/arabica-Sept2006.zip</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jez Higgins</dc:creator><pubDate>Fri, 14 Sep 2012 21:33:48 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netbff75e1d1f9f95f083208691444591877ef52bbf</guid></item><item><title>Arabica August 2006 Release</title><link>https://sourceforge.net/p/arabica/news/2006/08/arabica-august-2006-release/</link><description>Doesn't time go by?  

This release extends the XPath engine to support arbitrary strings types.  It now runs std::string and std::wstring out of the box.

A new dual DOM/Streaming parser has been added.  By registering a callback function, partially built DOM trees can be processed, modified, manipulated or even discarded, before proceeding to build more of the tree.

The test suite has been extended to include std::string, std::wstring and a custom string type. 

The release also includes assorted minor bug fixes.

Source tar.bz2
http://prdownloads.sourceforge.net/arabica/arabica-2006-august.tar.bz2?download

Source tar.gz
http://prdownloads.sourceforge.net/arabica/arabica-2006-august.tar.gz?download

Source zip
http://prdownloads.sourceforge.net/arabica/arabica-2006-august.zip?download</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jez Higgins</dc:creator><pubDate>Fri, 14 Sep 2012 21:33:48 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netaac64dec2a2501f2d543d6eb1d6fdcc56ead24bb</guid></item></channel></rss>