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

Is test "ab-option-020.xml" right? #34

Closed
xml-project opened this Issue Sep 13, 2018 · 4 comments

Comments

Projects
None yet
2 participants
@xml-project
Contributor

xml-project commented Sep 13, 2018

@ndw Could you please have a quick look at ab-option-020.xml?

I think this test is wrong and should fail with XD0036, because "'false'" can not be casted to xs:boolean. Right?

@xml-project xml-project self-assigned this Sep 13, 2018

@ndw

This comment has been minimized.

Show comment
Hide comment
@ndw

ndw Sep 14, 2018

Contributor

This seems to work:

  <xsl:value-of select="'false' cast as xs:boolean"/>
Contributor

ndw commented Sep 14, 2018

This seems to work:

  <xsl:value-of select="'false' cast as xs:boolean"/>
@xml-project

This comment has been minimized.

Show comment
Hide comment
@xml-project

xml-project Sep 14, 2018

Contributor

'false' works, but it is select="'false'" (double quotes!)

Contributor

xml-project commented Sep 14, 2018

'false' works, but it is select="'false'" (double quotes!)

@ndw

This comment has been minimized.

Show comment
Hide comment
@ndw

ndw Sep 14, 2018

Contributor

I think that's equivalent to my XSLT test. select="'false'" makes the value the string false. The quotes don't turn up in the value; if you take out the inner quotes, you get an XPath expression that's attempting to select a <false> element from the current context.

Contributor

ndw commented Sep 14, 2018

I think that's equivalent to my XSLT test. select="'false'" makes the value the string false. The quotes don't turn up in the value; if you take out the inner quotes, you get an XPath expression that's attempting to select a <false> element from the current context.

@xml-project

This comment has been minimized.

Show comment
Hide comment
@xml-project

xml-project Sep 14, 2018

Contributor

@ndw Yes, you are right - mistake on my side.
Thanks!

Contributor

xml-project commented Sep 14, 2018

@ndw Yes, you are right - mistake on my side.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment