docbook-apps

  • 1.  Small!! Lightweight!! xslt processor which is standalone!! and runs Docbook/XSL stylesheets?

    Posted 07-30-2012 13:13
    Does anyone know a small, lightweight xslt processor (doesn't need to
    be fast) written in ANSI/ISO C which can handle the Docbook/XSL
    stylesheets but does not depend on a quintillion of shared libraries?
    We want to use the Docbook/XSL stylesheets in our software package but
    ran afoul that we need a xslt processor installed and need to ship one
    if the underlying system doesn't have one. xsltproc ruled itself out
    because shipping all of it's dependencies means we have to ship 30MB
    of source code extra.



  • 2.  Re: [docbook-apps] Small!! Lightweight!! xslt processor which is standalone!! and runs Docbook/XSL stylesheets?

    Posted 07-30-2012 14:39
    On 2012-07-30 09:12, Dan Shelton wrote:
    > Does anyone know a small, lightweight xslt processor (doesn't need to
    > be fast) written in ANSI/ISO C which can handle the Docbook/XSL
    > stylesheets but does not depend on a quintillion of shared libraries?
    > We want to use the Docbook/XSL stylesheets in our software package but
    > ran afoul that we need a xslt processor installed and need to ship one
    > if the underlying system doesn't have one. xsltproc ruled itself out
    > because shipping all of it's dependencies means we have to ship 30MB
    > of source code extra.

    xsltproc is the best you can get. The required packages (libxml2 and
    libxslt) are stable, portable, and as self-contained as possible.
    (Running 'ldd' on libxml2.so and libxslt.so shows no dependencies other
    than to the C runtime and libz for compression. And I'm pretty sure you
    can avoid the latter if you are willing to recompile the packages to
    explicitly disable compression support.)

    Stefan


    --

    ...ich hab' noch einen Koffer in Berlin...




  • 3.  Re: [docbook-apps] Small!! Lightweight!! xslt processor which is standalone!! and runs Docbook/XSL stylesheets?

    Posted 08-17-2012 14:23
    Can you just provide a link to the source code?

    Cheers,
    jec

    On 7/30/12, Dan Shelton <dan.f.shelton@gmail.com> wrote:
    > Does anyone know a small, lightweight xslt processor (doesn't need to
    > be fast) written in ANSI/ISO C which can handle the Docbook/XSL
    > stylesheets but does not depend on a quintillion of shared libraries?
    > We want to use the Docbook/XSL stylesheets in our software package but
    > ran afoul that we need a xslt processor installed and need to ship one
    > if the underlying system doesn't have one. xsltproc ruled itself out
    > because shipping all of it's dependencies means we have to ship 30MB
    > of source code extra.
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >



  • 4.  Re: [docbook-apps] Small!! Lightweight!! xslt processor which is standalone!! and runs Docbook/XSL stylesheets?

    Posted 08-17-2012 14:32
    On 17 August 2012 16:22, Jeff Chimene <jchimene@gmail.com> wrote:
    > Can you just provide a link to the source code?

    No, because the package MUST be self-contained, which means it must
    have all parts in one source bundle to work on machines which are
    behind firewalls or more likely even an intranet with no connection to
    the Internet. The only requirement is a working C89 compiler.

    We already checked xsltproc and it can completely be ruled out because
    it will require almost 80MB of extra source code to meet it's minimum
    dependencies.

    A colleague with two Dr. (Med/IT) and one Prof. in IT already called
    XML and XSLT "a failure" because the processing requirements have
    become insane - IT was once done with 4MB machines, doing the same
    with today's machines and XML/XSLT goes up to 400MB as minimum. And
    admittedly, I have no arguments to prove him wrong - XML processing
    takes a lot of memory (why?) and XSLT processing is... eating memory.
    Lots of memory. There doesn't seem to be a "small" solution.



  • 5.  RE: [docbook-apps] Small!! Lightweight!! xslt processor which is standalone!! and runs Docbook/XSL stylesheets?

    Posted 08-17-2012 15:34
    >> A colleague with two Dr. (Med/IT) and one Prof. in IT already
    >> called XML and XSLT "a failure"

    Apparently, "in daily use by millions of users all over the world" and "a failure" can coexist.

    -----Original Message-----
    From: Dan Shelton [mailto:dan.f.shelton@gmail.com]
    Sent: Friday, August 17, 2012 10:32 AM
    To: Jeff Chimene
    Cc: DocBook Apps; xml-dev@lists.xml.org
    Subject: Re: [docbook-apps] Small!! Lightweight!! xslt processor which is standalone!! and runs Docbook/XSL stylesheets?

    On 17 August 2012 16:22, Jeff Chimene <jchimene@gmail.com> wrote:
    > Can you just provide a link to the source code?

    No, because the package MUST be self-contained, which means it must have all parts in one source bundle to work on machines which are behind firewalls or more likely even an intranet with no connection to the Internet. The only requirement is a working C89 compiler.

    We already checked xsltproc and it can completely be ruled out because it will require almost 80MB of extra source code to meet it's minimum dependencies.

    A colleague with two Dr. (Med/IT) and one Prof. in IT already called XML and XSLT "a failure" because the processing requirements have become insane - IT was once done with 4MB machines, doing the same with today's machines and XML/XSLT goes up to 400MB as minimum. And admittedly, I have no arguments to prove him wrong - XML processing takes a lot of memory (why?) and XSLT processing is... eating memory.
    Lots of memory. There doesn't seem to be a "small" solution.

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org




  • 6.  Re: [docbook-apps] Small!! Lightweight!! xslt processor which is standalone!! and runs Docbook/XSL

    Posted 08-17-2012 16:03
    On Fri, 17 Aug 2012 16:31:39 +0200, Dan Shelton <dan.f.shelton@gmail.com>
    wrote:
    > No, because the package MUST be self-contained, which means it must
    > have all parts in one source bundle to work on machines which are
    > behind firewalls or more likely even an intranet with no connection to
    > the Internet. The only requirement is a working C89 compiler.
    >
    > We already checked xsltproc and it can completely be ruled out because
    > it will require almost 80MB of extra source code to meet it's minimum
    > dependencies.

    I sympathize. And I find xslt extremely counter-intuitive--every time I
    work with it, I spend hours trying to figure out how to do s.t. which seems
    like it should be trivial. I guess if I used xslt every day...but I don't
    feel that way about other computer languages that I use on an occasional
    basis.

    I don't suppose an alternative solution would work--doing it in Python or
    some other language that implements SAX or DOM?

    Mike Maxwell



  • 7.  Re: [docbook-apps] Small!! Lightweight!! xslt processor which is standalone!! and runs Docbook/XSL stylesheets?

    Posted 08-17-2012 17:23
    On 17.8.2012 16:31, Dan Shelton wrote:

    > A colleague with two Dr. (Med/IT) and one Prof. in IT already called
    > XML and XSLT "a failure" because the processing requirements have
    > become insane - IT was once done with 4MB machines, doing the same
    > with today's machines and XML/XSLT goes up to 400MB as minimum. And
    > admittedly, I have no arguments to prove him wrong - XML processing
    > takes a lot of memory (why?) and XSLT processing is... eating memory.
    > Lots of memory. There doesn't seem to be a "small" solution.

    I wouldn't say this is failure of XML/XSLT. Most users are not so
    tightly constrained by memory so they are not pushing very hard for
    memory economical implementations. So this is particulary failure of
    implementations and partialy failure of users who are not demanding more
    and who are not prepared to pay for more.

    What's quite surprising that very efficient Java implementations like
    Saxon can outperform many C-based implementations both in terms of
    memory usage and performance.

    However if your main objective is something small and C based you can
    give a try to Sablotron (https://sourceforge.net/projects/sablotron/)
    and Xalan-C (http://xml.apache.org/xalan-c/). It has been while since
    last time I compiled them from source (more then decade) but they
    definitively should have less then 80 MB of dependencies.

    Jirka

    --
    ------------------------------------------------------------------
    Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz
    ------------------------------------------------------------------
    Professional XML consulting and training services
    DocBook customization, custom XSLT/XSL-FO document processing
    ------------------------------------------------------------------
    OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
    ------------------------------------------------------------------