Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packages vs WP Address #49

Open
llemeurfr opened this issue Jun 3, 2019 · 3 comments
Open

Packages vs WP Address #49

llemeurfr opened this issue Jun 3, 2019 · 3 comments

Comments

@llemeurfr
Copy link
Contributor

llemeurfr commented Jun 3, 2019

WP address are defined in https://w3c.github.io/wpub/#address.
Most packages created by publishers will have no address until they are "exposed" on the web.

The difficulty is that the WP address is required in a WP Manifest, the WP address references the PEP, but a, index.html (i.e. PEP file) is not mandatory in a Package.

A pragmatic solution is to require that the address value MUST be "index.html" inside the manifest even if the corresponding file is not present in the Package. The URL will be updated to the final WP address by a processor which transforms the Package to a Web Publication.

@llemeurfr
Copy link
Contributor Author

llemeurfr commented Jun 9, 2019

Better proposal I think: specify a relative path to the PEP (usually "url":"index.html") if the PEP is present in the Package, and a null WP address ("url":"") if the PEP is not present in the Package. The URL will be updated to the final WP address by a processor which transforms the Package to a Web Publication.

@iherman
Copy link
Member

iherman commented Jun 10, 2019

I think what this shows that there may be a need to describe, explicitly, the steps taken by a processor when the content of a package is turned into a Web Publication (see also the discussions about w3c/wpub#456).

@llemeurfr
Copy link
Contributor Author

The discussion on w3c/wpub#456 lead to a definition of a Publication Manifest where no Address is defined (the Address is defined at the level of the Web Publication, as "its value is conceptually finalized when things are put on the Web". I like this, as it solve the current issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants