Project

Profile

Help

Bug #2273

closed

collection() does not use built-in copies of W3C DTDs

Added by Michael Kay almost 10 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Performance
Sprint/Milestone:
Start date:
2014-12-22
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.6
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:
Platforms:

Description

From Gunther Rademacher on saxon-help:

I am trying to run fn:collection on a set of XHTML documents in the file system, each of them having a DOCTYPE declaration as follows:

<!DOCTYPE html

  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

...

My first approach was to do it like this

collection(".?select=*.xhtml")

This works, but I am having issues with the parser's DTD resolution. When however doing it like this,

collection(".?select=*.xhtml;unparsed=yes")/doc(base-uri(.))

it works much better, because the DTD is resolved against a Saxon copy (as indicated when using command line option "-t"). Should not this be done from within the context of fn:collection, too?

BTW, an empty command line for net.sf.saxon.Query prints out

Usage: see http://www.saxonica.com/documentation/html/using-xquery/commandline.html

but the content of that page apparently has moved to

http://www.saxonica.com/documentation/#!using-xquery/commandline

Thanks and best regards,

Gunther

Please register to edit this issue

Also available in: Atom PDF