Project

Profile

Help

Feature #6328

open

Expose URI helpers to C/C++

Added by Matt Patterson 11 months ago. Updated 6 days ago.

Status:
New
Priority:
Low
Category:
SaxonC API
Start date:
2024-01-26
Due date:
% Done:

0%

Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
Fixed in version:
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:

Description

Unlike Python, which has URL manipulation support in the standard library, C & C++ don’t make URL manipulation as convenient. While running Saxon C samples on Windows I came across a couple of places where filepath-to-URI conversion broke because handling windows separators is complex… we should at least provide a helper function for parsing filesystem paths into file URIs, given how important they are in daily use…

Actions #1

Updated by O'Neil Delpratt 24 days ago

  • Assignee set to O'Neil Delpratt

Good for SaxonC 13

Actions #2

Updated by Matt Patterson 6 days ago

See testXSLT30.cpp line 1151:

string baseURI = string("file://") + sproc->getcwd();

and testXQuery.cpp line 360:

string baseURI = string("file://") + processor->getcwd();

Both these examples will produce bad URIs on Windows: something like file://C:\SaxonDev\not\a\real\uri.xml

Please register to edit this issue

Also available in: Atom PDF