Anyone have some general guidance for doing a migration from NUX to just the straight XOM then?

import nux.xom.pool.{XOMUtil, BuilderPool => NuxBuilderPool, XQueryPool => NuxXQueryPool}
import nux.xom.xquery.{XQuery => NuxXQuery}

private def transform(xqueryRaw: String, xml: String): String = {
    val xquery: NuxXQuery = NuxXQueryPool.GLOBAL_POOL.getXQuery(xqueryRaw, null)
    val builder = NuxBuilderPool.GLOBAL_POOL.getBuilder(false)
    val doc = builder.build(xml, null)
    val node = xquery.execute(doc).next
    XOMUtil.toPrettyXML(node)
  }

Might still need NUX for the XOMUtil stuff?

Thanks,

Eric


On Thu, Mar 13, 2014 at 3:28 AM, Michael Kay <mike@saxonica.com> wrote:

No, I don't think anyone has been maintaining NUX. (In fact, last time I looked, it was quite hard to find a download).

I think that many of the good things that were done in NUX ended up being incorporated into the Saxon XOM wrapper.

Michael Kay
Saxonica

On 12 Mar 2014, at 15:24, Eric Peters <Eric@Peters.org> wrote:

> It looks like NUX hasn't been touched since 2006, but I'm not sure if someone has been maintaining it to work with the current Saxon libraries?
>
> The current exception I get with: "net.sf.saxon" % "Saxon-HE" % "9.5.1-4",
> Exception in thread "main" java.lang.NoSuchMethodError: net.sf.saxon.Configuration.setAllowExternalFunctions(Z)V
>         at nux.xom.xquery.XQuery.createConfiguration(XQuery.java:609)
>         at nux.xom.xquery.XQuery.<init>(XQuery.java:361)
>
>
> Thanks,
>
> Eric
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech_______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> saxon-help@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/saxon-help