Future of STX in Orbeon?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Future of STX in Orbeon?

Tony Graham
What is the likely future of STX in Orbeon?

I notice that with the XSLT processor page falling off the documentation
site [1] and onto the wiki [2][3], the page lost the section on STX.

I also notice that Orbeon 3.8 will include Saxon 9.1 [4].

I have a need to extract metadata from XML files that could be up to 20 MB
in size.  Separately, I need to process the files to reduce them to
something more manageable to use as input for another transform (e.g., a
current 21 MB file reduces to less than 3 MB).

STX was looking like a good way to do those tasks in Orbeon, but while I
don't know when -- if ever -- the project would move to a newer version of
Orbeon, STX isn't looking so good if it is to be sidelined in future
versions of Orbeon.

If STX has a limited future in Orbeon, then I think I'd be better off
using the 'oxf:external-saxon' processor [5] with my own copy of Saxon
9.1.  (Is there any guidance on how to configure Orbeon to find the jars
for the external Saxon?)

Regards,


Tony Graham                         [hidden email]
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd                               XML Guild member
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2


[1] Sidebar points to
http://wiki.orbeon.com/forms/doc/xslt-jaxp-processors
[2] http://www.orbeon.com/orbeon/doc/processors-xslt
[3] http://wiki.orbeon.com/forms/doc/developer-guide/processors-xslt-jaxp [4]
http://wiki.orbeon.com/forms/doc/developer-guide/release-orbeon-forms-38#TOC-Migration-to-Saxon-9.1
[5]
http://wiki.orbeon.com/forms/doc/developer-guide/processors-xslt-jaxp#TOC-Processor-names





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Future of STX in Orbeon?

Alessandro  Vernet
Administrator
Tony,

Here, we haven't used STX in a long time, and have no plans to do so
in the near future. But I wouldn't want to discourage you use STX if
this is the right solution for you. The layer we have in Orbeon Forms
to support STX is pretty thin:

1. In processors.xml, oxf:stx is declared as an instantiation of the
Trax processor with the class net.sf.joost.trax.TransformerFactoryImpl
(the implementation of STX).

    <processor name="oxf:stx">
        <instantiation name="oxf:trax">
            <input name="transformer">
                <config>
                    <class>net.sf.joost.trax.TransformerFactoryImpl</class>
                </config>
            </input>
        </instantiation>
    </processor>

2. The Trax processor is completely generic and is implemented by
org.orbeon.oxf.processor.transformer.TraxTransformer.

So you should be fine as long as the implementation of STX you want to
use (well... Joost), plays well with the Trax transformer in Orbeon
Forms.

Alex

On Wed, Apr 21, 2010 at 1:18 AM, Tony Graham
<[hidden email]> wrote:

> What is the likely future of STX in Orbeon?
>
> I notice that with the XSLT processor page falling off the documentation
> site [1] and onto the wiki [2][3], the page lost the section on STX.
>
> I also notice that Orbeon 3.8 will include Saxon 9.1 [4].
>
> I have a need to extract metadata from XML files that could be up to 20 MB
> in size.  Separately, I need to process the files to reduce them to
> something more manageable to use as input for another transform (e.g., a
> current 21 MB file reduces to less than 3 MB).
>
> STX was looking like a good way to do those tasks in Orbeon, but while I
> don't know when -- if ever -- the project would move to a newer version of
> Orbeon, STX isn't looking so good if it is to be sidelined in future
> versions of Orbeon.
>
> If STX has a limited future in Orbeon, then I think I'd be better off
> using the 'oxf:external-saxon' processor [5] with my own copy of Saxon
> 9.1.  (Is there any guidance on how to configure Orbeon to find the jars
> for the external Saxon?)
>
> Regards,
>
>
> Tony Graham                         [hidden email]
> Director                                  W3C XSL FO SG Invited Expert
> Menteith Consulting Ltd                               XML Guild member
> XML, XSL and XSLT consulting, programming and training
> Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
> Registered in Ireland - No. 428599   http://www.menteithconsulting.com
>  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
> xmlroff XSL Formatter                               http://xmlroff.org
> xslide Emacs mode                  http://www.menteith.com/wiki/xslide
> Unicode: A Primer                               urn:isbn:0-7645-4625-2
>
>
> [1] Sidebar points to
> http://wiki.orbeon.com/forms/doc/xslt-jaxp-processors
> [2] http://www.orbeon.com/orbeon/doc/processors-xslt
> [3] http://wiki.orbeon.com/forms/doc/developer-guide/processors-xslt-jaxp [4]
> http://wiki.orbeon.com/forms/doc/developer-guide/release-orbeon-forms-38#TOC-Migration-to-Saxon-9.1
> [5]
> http://wiki.orbeon.com/forms/doc/developer-guide/processors-xslt-jaxp#TOC-Processor-names
>
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: Future of STX in Orbeon?

Tony Graham
On Thu, Apr 22 2010 22:58:43 +0100, [hidden email] wrote:
> Here, we haven't used STX in a long time, and have no plans to do so
> in the near future. But I wouldn't want to discourage you use STX if
> this is the right solution for you. The layer we have in Orbeon Forms
> to support STX is pretty thin:

It's not that I have a particular attachment to STX: I don't.  I was
asking about STX because up until you changed your website (last week?)
it was looking like the best supported solution for getting a small
amount of XML out of a large uploaded XML file or cutting down the XML
file.

So what is the best, most future-proof way of doing what I want?  I'll
entertain all options, including massaging the uploaded file in PHP if
necessary.

Regards,


Tony Graham                         [hidden email]
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd                               XML Guild member
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Future of STX in Orbeon?

Erik Bruchez
Administrator
Tony,

One possibility would be to look into a commercial version of Saxon,
which has support for streaming:

http://www.saxonica.com/feature-matrix.html

Since XSLT 2.x is very likely to standardize streaming extensions,
that is likely fairly future-proof.

If the transformation is not too complicated, writing your own XPL
processor could be an option too, using the SAX API to handle
streaming.

-Erik

On Mon, Apr 26, 2010 at 8:03 AM, Tony Graham
<[hidden email]> wrote:

> On Thu, Apr 22 2010 22:58:43 +0100, [hidden email] wrote:
>> Here, we haven't used STX in a long time, and have no plans to do so
>> in the near future. But I wouldn't want to discourage you use STX if
>> this is the right solution for you. The layer we have in Orbeon Forms
>> to support STX is pretty thin:
>
> It's not that I have a particular attachment to STX: I don't.  I was
> asking about STX because up until you changed your website (last week?)
> it was looking like the best supported solution for getting a small
> amount of XML out of a large uploaded XML file or cutting down the XML
> file.
>
> So what is the best, most future-proof way of doing what I want?  I'll
> entertain all options, including massaging the uploaded file in PHP if
> necessary.
>
> Regards,
>
>
> Tony Graham                         [hidden email]
> Director                                  W3C XSL FO SG Invited Expert
> Menteith Consulting Ltd                               XML Guild member
> XML, XSL and XSLT consulting, programming and training
> Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
> Registered in Ireland - No. 428599   http://www.menteithconsulting.com
>  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
> xmlroff XSL Formatter                               http://xmlroff.org
> xslide Emacs mode                  http://www.menteith.com/wiki/xslide
> Unicode: A Primer                               urn:isbn:0-7645-4625-2
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws