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

TypeError: Cannot read property 'namespaceUri' of null #99

Open
d7gonzo opened this issue May 26, 2019 · 0 comments
Open

TypeError: Cannot read property 'namespaceUri' of null #99

d7gonzo opened this issue May 26, 2019 · 0 comments

Comments

@d7gonzo
Copy link

d7gonzo commented May 26, 2019

I have been trying to utilize the complete TEI schema for editing documents. The exact file I downloaded from them is the XSD file labelled All.

The complete error that appears:

TypeError: Cannot read property 'namespaceUri' of null
at SchemaProcessor.getBuiltInType (xsd2json.js:1073)
at SchemaProcessor.build_restriction (xsd2json.js:998)
at SchemaProcessor.build (xsd2json.js:761)
at SchemaProcessor.build_simpleType (xsd2json.js:852)
at SchemaProcessor.build (xsd2json.js:761)
at SchemaProcessor.build_attribute (xsd2json.js:810)
at SchemaProcessor.build (xsd2json.js:761)
at SchemaProcessor.buildTopLevel (xsd2json.js:757)
at SchemaProcessor.build_schema (xsd2json.js:741)
at SchemaProcessor.processSchema (xsd2json.js:628)

The javascript function used from index.html:

	$(function() {
	      var extractor = new Xsd2Json("tei_all.xsd", {"schemaURI":"schemas/tei/"});

	      $("#mods_editor").xmlEditor({
	              schema: extractor.getSchema()
	      });
	});

Also came across this exact error when trying to import a Menota schema I converted using the TEI Roma tool.

Screen Shot 2019-05-26 at 4 04 09 PM

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

1 participant