Hi,
It appears the EXPath package format has changed. The current version of the spec reads:
the root of the ZIP file contains a directory named *content*, containing the components and any other file the package needs.
http://expath.org/spec/pkg#descriptor
A previous version http://expath.org/spec/pkg/20100107#d2e112 reads
Alongside this descriptor, the root of the ZIP file contains a directory *named after the module name* (see below) which contains the components and any other file the package needs.
BaseX appears only to support this earlier version. If a package using a *content* folder is installed the following error is reported:
[bxerr:BXRE0004] Package descriptor: Invalid attribute 'name'
/Andy
Hi Andy,
Thanks for the hint. I will browse through the current and the older version of the spec in order to find out what else has changed.
Christian
On Mon, May 11, 2015 at 3:42 PM, Andy Bunce bunce.andy@gmail.com wrote:
Hi,
It appears the EXPath package format has changed. The current version of the spec reads:
the root of the ZIP file contains a directory named content, containing the components and any other file the package needs.
http://expath.org/spec/pkg#descriptor
A previous version http://expath.org/spec/pkg/20100107#d2e112 reads
Alongside this descriptor, the root of the ZIP file contains a directory named after the module name (see below) which contains the components and any other file the package needs.
BaseX appears only to support this earlier version. If a package using a content folder is installed the following error is reported:
[bxerr:BXRE0004] Package descriptor: Invalid attribute 'name'
/Andy
Hi,
That's correct Andy, that has changed some time ago, based on some feedback.
For what it's worth, in the implementation for Saxon and Calabash, I support both for a transitional period (if 'content' is there, that's the new model, if a dir with the package name exists, then that's the old format and I issue a warning but keep going, else it is a format error).
Regards,
Hi Florent,
Thanks for your comment. Do you plan to publish a diff version of the two specs?
Christian
On Tue, May 12, 2015 at 9:51 AM, Florent Georges fgeorges@fgeorges.org wrote:
Hi,
That's correct Andy, that has changed some time ago, based on some feedback.
For what it's worth, in the implementation for Saxon and Calabash, I support both for a transitional period (if 'content' is there, that's the new model, if a dir with the package name exists, then that's the old format and I issue a warning but keep going, else it is a format error).
Regards,
-- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/
On 12 May 2015 at 09:30, Christian Grün wrote:
Hi Andy,
Thanks for the hint. I will browse through the current and the older version of the spec in order to find out what else has changed.
Christian
On Mon, May 11, 2015 at 3:42 PM, Andy Bunce bunce.andy@gmail.com wrote:
Hi,
It appears the EXPath package format has changed. The current version of the spec reads:
the root of the ZIP file contains a directory named content, containing the components and any other file the package needs.
http://expath.org/spec/pkg#descriptor
A previous version http://expath.org/spec/pkg/20100107#d2e112 reads
Alongside this descriptor, the root of the ZIP file contains a directory named after the module name (see below) which contains the components and any other file the package needs.
BaseX appears only to support this earlier version. If a package using a content folder is installed the following error is reported:
[bxerr:BXRE0004] Package descriptor: Invalid attribute 'name'
/Andy
Not between 2 versions not next to each other (20120509 and 20100107). But it happens that the change occurred between the latest (20120509) and the directly previous one (20101111). So you can follow the link "Revision markup", which is the diff version from an edition against the previous one: http://expath.org/spec/pkg/20120509/diff.
Basically, in addition to the change with the content dir Andy reported, there are the following changes in that edition:
- new DTD and resource components - dependency to a specific processor uses a URI - new section on URI resolution
Regards,
Not between 2 versions not next to each other (20120509 and 20100107). But it happens that the change occurred between the latest (20120509) and the directly previous one (20101111).
Fine!
I have updated the snapshot [1]; both 'content' and the abbrev directory will now be detected. Christian
[1] http://files.basex.org/releases/latest/
So you can follow the link "Revision markup", which is the diff version from an edition against the previous one: http://expath.org/spec/pkg/20120509/diff.
Basically, in addition to the change with the content dir Andy reported, there are the following changes in that edition:
new DTD and resource components
dependency to a specific processor uses a URI
new section on URI resolution
Regards,
-- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/
On 12 May 2015 at 09:52, Christian Grün wrote:
Hi Florent,
Thanks for your comment. Do you plan to publish a diff version of the two specs?
Christian
On Tue, May 12, 2015 at 9:51 AM, Florent Georges fgeorges@fgeorges.org wrote:
Hi,
That's correct Andy, that has changed some time ago, based on some feedback.
For what it's worth, in the implementation for Saxon and Calabash, I support both for a transitional period (if 'content' is there, that's the new model, if a dir with the package name exists, then that's the old format and I issue a warning but keep going, else it is a format error).
Regards,
-- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/
On 12 May 2015 at 09:30, Christian Grün wrote:
Hi Andy,
Thanks for the hint. I will browse through the current and the older version of the spec in order to find out what else has changed.
Christian
On Mon, May 11, 2015 at 3:42 PM, Andy Bunce bunce.andy@gmail.com wrote:
Hi,
It appears the EXPath package format has changed. The current version of the spec reads:
the root of the ZIP file contains a directory named content, containing the components and any other file the package needs.
http://expath.org/spec/pkg#descriptor
A previous version http://expath.org/spec/pkg/20100107#d2e112 reads
Alongside this descriptor, the root of the ZIP file contains a directory named after the module name (see below) which contains the components and any other file the package needs.
BaseX appears only to support this earlier version. If a package using a content folder is installed the following error is reported:
[bxerr:BXRE0004] Package descriptor: Invalid attribute 'name'
/Andy
38 minutes between the email with the links, and a new build being publicly released on the website. BaseX and Saxon are the 2 most incredibly reactive companies to solve stuff! (and BaseX always makes them available on a public snapshot!)
…you are welcome ;) thanks.
On Tue, May 12, 2015 at 11:04 AM, Florent Georges fgeorges@fgeorges.org wrote:
38 minutes between the email with the links, and a new build being publicly released on the website. BaseX and Saxon are the 2 most incredibly reactive companies to solve stuff! (and BaseX always makes them available on a public snapshot!)
-- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/
On 12 May 2015 at 10:46, Christian Grün wrote:
Not between 2 versions not next to each other (20120509 and 20100107). But it happens that the change occurred between the latest (20120509) and the directly previous one (20101111).
Fine!
I have updated the snapshot [1]; both 'content' and the abbrev directory will now be detected. Christian
[1] http://files.basex.org/releases/latest/
So you can follow the link "Revision markup", which is the diff version from an edition against the previous one: http://expath.org/spec/pkg/20120509/diff.
Basically, in addition to the change with the content dir Andy reported, there are the following changes in that edition:
new DTD and resource components
dependency to a specific processor uses a URI
new section on URI resolution
Regards,
-- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/
On 12 May 2015 at 09:52, Christian Grün wrote:
Hi Florent,
Thanks for your comment. Do you plan to publish a diff version of the two specs?
Christian
On Tue, May 12, 2015 at 9:51 AM, Florent Georges fgeorges@fgeorges.org wrote:
Hi,
That's correct Andy, that has changed some time ago, based on some feedback.
For what it's worth, in the implementation for Saxon and Calabash, I support both for a transitional period (if 'content' is there, that's the new model, if a dir with the package name exists, then that's the old format and I issue a warning but keep going, else it is a format error).
Regards,
-- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/
On 12 May 2015 at 09:30, Christian Grün wrote:
Hi Andy,
Thanks for the hint. I will browse through the current and the older version of the spec in order to find out what else has changed.
Christian
On Mon, May 11, 2015 at 3:42 PM, Andy Bunce bunce.andy@gmail.com wrote: > Hi, > > It appears the EXPath package format has changed. The current version of the > spec reads: > > the root of the ZIP file contains a directory named content, containing the > components and any other file the package needs. > > http://expath.org/spec/pkg#descriptor > > A previous version http://expath.org/spec/pkg/20100107#d2e112 reads > > Alongside this descriptor, the root of the ZIP file contains a directory > named after the module name (see below) which contains the components and > any other file the package needs. > > BaseX appears only to support this earlier version. If a package using a > content folder is installed the following error is reported: > > [bxerr:BXRE0004] Package descriptor: Invalid attribute 'name' > > /Andy
basex-talk@mailman.uni-konstanz.de