Does the --baseurl option support file URLs (e.g. file://mypath)? I've done some experimentation on this -- it appears to support file URLs but only if the URLs in the HTML are not absolute paths.
For example, if I have <img src="/mycontext/images/image.jpg"/>, it will ignore the --baseurl value and report: "prince: /images/image.jpg: warning: can't open input file: No such file or directory." If I give it an HTTP URL such as http://localhost:8080/mypath, then it will work.
However, if the path is a relative path, it does work properly. For example, assume I have <img src="images/picture.jpg"/> and my image resides at /home/joe/web/images/picture.jpg. If I supply a base URL of file:///home/joe/web, then the image is found.
Should the --baseurl option work with a file URL when the URLs in the HTML are absolute paths?
For example, if I have <img src="/mycontext/images/image.jpg"/>, it will ignore the --baseurl value and report: "prince: /images/image.jpg: warning: can't open input file: No such file or directory." If I give it an HTTP URL such as http://localhost:8080/mypath, then it will work.
However, if the path is a relative path, it does work properly. For example, assume I have <img src="images/picture.jpg"/> and my image resides at /home/joe/web/images/picture.jpg. If I supply a base URL of file:///home/joe/web, then the image is found.
Should the --baseurl option work with a file URL when the URLs in the HTML are absolute paths?