[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Extending xsltproc?

Subject: Re: Extending xsltproc?
From: Daniel Veillard <daniel@xxxxxxxxxxxx>
Date: Thu, 2 May 2002 10:13:33 +0200
xsltproc
On Wed, May 01, 2002 at 11:56:33PM -0400, Gary Lawrence Murphy wrote:
> >>>>> "D" == Daniel Veillard <daniel@xxxxxxxxxxxx> writes:
> 
>     D> What makes you believe "it's just a proofing tool" ?  
> 
> Because that is how it is described on its website.  As you also

  Oooops .... where ?

> illustrate with your next statement, the entire set of documentation
> never really talks about xsltproc, it talks exclusively about inline
> C use of the libxslt library functions ...

  Okay, then you have a point I need to fix this !

>     D> What about RTFM ? http://xmlsoft.org/XSLT/extensions.html
> 
> Because this page you cite describes how to extend inline C invocations
> of the libxslt, not how to extend the xsltproc?  If it does explain how
> to extend the xsltproc program, it's eluding me. 

  Extending a C based binary in a portable fashion is just hell, 
have you looked at the python wrappers for libxml2/libxslt. There is
an (nearly complete) rewrite of xsltproc in python called pyxsltproc.py
(in /usr/share/doc/libxslt-python-... if you installed libxslt-python
on a red Hat system), as well as a couple of examples on how to extend
the engine with Python written functions, that could be one solution.

> The best I can come
> up with is "take the xsltproc source, if you can find it, and use
> these methods to extend it, then recompile a new customized version
> of the xsltproc binary"

 Yes, if you really want to stick to C, then yes the best is to start from
the xsltproc code and extend it with your own set of function following
the guidelines of extensions.html .

 How were you expecting initialy to extend xsltproc, if not by gluing 
in C functions? honnestly I wonder about this, there is something
which escapes me ...

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@xxxxxxxxxx  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.