You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
<?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>
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
The text was updated successfully, but these errors were encountered: