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

Validation service code fixes #2

Open
brundin opened this issue Jul 22, 2014 · 1 comment
Open

Validation service code fixes #2

brundin opened this issue Jul 22, 2014 · 1 comment

Comments

@brundin
Copy link
Contributor

brundin commented Jul 22, 2014

Please make the following fixes in how error message XPaths are returned:

(1) Begin the XPath with a forward slash.
(2) Use "1" as the predicate in square brackets for the first XPath, rather than "0".
(3) Trailing slashes will sometimes be appended to the XPath.
(4) More importantly: elements will sometimes be duplicated in the XPath.

You can use the following XML fragment to produce a validation error that demonstrates items number (1), (2), (3), and (4).

http://apps.testing.cwrc.ca/services/validator/validate.html
sch = http://cwrc.ca/schemas/cwrc_tei_lite.rng
type = "RNG_XML"
content =

<title>Sample Document Title</title>

Created from original research by members of CWRC/CSÉC unless otherwise noted.

Sample letter content

@ajmacdonald
Copy link

Here's the content:

<?xml version="1.0" encoding="UTF-8"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:w="http://cwrctc.artsrn.ualberta.ca/#"><teiHeader><fileDesc><titleStmt> <title>Sample Document Title</title> </titleStmt><publicationStmt><p></p></publicationStmt><sourceDesc sameAs="http://www.cwrc.ca"><p>Created from original research by members of CWRC/CSÉC unless otherwise noted.</p></sourceDesc></fileDesc></teiHeader><text><body><div type="letter"><p><list type="simple">Sample letter content</list></p></div></body></text></TEI>

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

No branches or pull requests

2 participants