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

Cannot compare namespace node #67

Closed
AirQuick opened this issue Jan 14, 2017 · 2 comments · Fixed by #315 or #488
Closed

Cannot compare namespace node #67

AirQuick opened this issue Jan 14, 2017 · 2 comments · Fixed by #315 or #488
Labels

Comments

@AirQuick
Copy link
Member

AirQuick commented Jan 14, 2017

test.xsl (defines a namespace node variable)

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:variable as="node()" name="namespace">
		<xsl:namespace name="namespace-name">namespace-text</xsl:namespace>
	</xsl:variable>
</xsl:stylesheet>

test.xspec (tests test.xsl by comparing the namespace node variable with itself)

<?xml version="1.0" encoding="UTF-8"?>
<x:description stylesheet="test.xsl" xmlns:x="http://www.jenitennison.com/xslt/xspec">
	<x:scenario label="Compare namespace">
		<x:call function="exactly-one">
			<x:param select="$namespace" />
		</x:call>
		<x:expect label="Match" select="$namespace" />
	</x:scenario>
</x:description>

The x:expect must succeed, but it fails.
The report doesn't tell what's wrong:

Result Expected Result
/node() /node()
@AirQuick AirQuick self-assigned this Jan 14, 2017
@AirQuick AirQuick added the bug label Jan 14, 2017
@AirQuick AirQuick added this to the v0.6.0 milestone Jan 14, 2017
@AirQuick
Copy link
Member Author

Low priority. But this bug makes it a bit complicated to write a test case for #59.

@AirQuick
Copy link
Member Author

AirQuick commented Mar 7, 2019

Reopening for XQuery

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