Another Request: sablotron.dll

Emmanuel. M. Decarie emm at scriptdigital.com
Tue Mar 19 05:19:04 PST 2002


>At 17:38h -0800 18.03.2002, Bill Humphries wrote:
>>I'd also like to call an XSLT engine from inside of Frontier, but I 
>>don't want to have to fork a process to do it.
>>
>>I'm not a C/C++ head, so I don't know the difficulties involved in 
>>adding something like Ginger Aliance's Sablotron XSLT processor. 
>>http://www.gingerall.org/charlie/ga/xml/p_sab.xml
>
>I might step up to the plate, but no promises yet. (If someone else 
>is already working on this, please let me know.)
>
>Do you have any idea how Sablotron compares to, say, the Gnome 
>project's libxml2/libxslt, see http://xmlsoft.org/ and 
>http://xmlsoft.org/XSLT/ as far as features and performance are 
>concerned?

IMO, it should be much more interesting to get the Gnome xml libs 
working with Frontier than Sablotron. Sablotron use James Clark's 
expat XML parser while

>... libxml2 was written after the DOM, XPath, and SAX interfaces 
>became common, and so it implements all three. In-memory trees can 
>be built by parsing documents stored in files, strings, and so on, 
>or generated from a series of SAX events. Those trees can then be 
>operated on using the W3C DOM and XPath interfaces or used to 
>generate SAX events that are handed off to external event handlers.
<http://www.xml.com/pub/a/2001/11/14/xml-libxml.html>

I don't know much about Sablotron, but I don't think that it 
implement SAX events. Sax events are much better suited in a dynamic 
environment because you don't need to load in memory the entire XML 
document to parse it.

"The SAX API is unique among XML APIs because it's an event-based 
push model rather than a tree-based pull model. As the XML  parser 
reads and XML document, it sends your program information from the 
document in real time. Each time the parser sees a start Tab, an end 
tag, character data, or a processing instruction, it tells your 
program."
Harold, Means, _XML in a Nutshell_, O'Reilly, Sebastopol, 2001

Cheers
-Emmanuel
-- 
______________________________________________________________________
Emmanuel Décarie / Programmation pour le Web - Programming for the Web
Frontier - Perl - Javascript - XML  <http://scriptdigital.com/>




More information about the Frontier-Users mailing list