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

XSpec occupies x: namespace prefix #466

Closed
AirQuick opened this issue Nov 24, 2018 · 1 comment · Fixed by #472
Closed

XSpec occupies x: namespace prefix #466

AirQuick opened this issue Nov 24, 2018 · 1 comment · Fixed by #472
Labels

Comments

@AirQuick
Copy link
Member

AirQuick commented Nov 24, 2018

XSpec (Note t and x namespace prefixes.)

<?xml version="1.0" encoding="UTF-8"?>
<t:description query="x-urn:test:do-nothing" query-at="do-nothing.xquery"
	stylesheet="do-nothing.xsl" xmlns:do-nothing="x-urn:test:do-nothing"
	xmlns:t="http://www.jenitennison.com/xslt/xspec" xmlns:x="my-namespace">
	<t:scenario label="Using x: prefix in user-content">
		<t:call function="name">
			<t:param>
				<x:element />
			</t:param>
		</t:call>
		<t:expect label="should be possible" select="'x:element'" />
	</t:scenario>
</t:description>

XSLT

...
Creating Test Stylesheet...
...
Cannot create two namespace nodes with the same prefix mapped to different URIs (prefix=x, URI=my-namespace, URI=http://www.jenitennison.com/xslt/xspec)

*** Error compiling the test suite

XQuery

...
Running Tests...
Static error on line 30 column 50 of test.xq:
  XPST0008: Variable $t:result has not been declared
Static error on line 1 column 22 of test.xq:
  XPST0008: Variable $local:successful has not been declared
Static error(s) in query

*** Error running the test suite
@AirQuick AirQuick added the bug label Nov 24, 2018
@AirQuick
Copy link
Member Author

x: shouldn't be hardcoded. (expath#24 (comment))

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

Successfully merging a pull request may close this issue.

1 participant