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

Variable content as element #1

Closed
AndrewSales opened this issue May 26, 2023 · 1 comment
Closed

Variable content as element #1

AndrewSales opened this issue May 26, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@AndrewSales
Copy link

@dmj wouldn't we expect count($foobar) = 1 (or count($foobar/self::html:p) = 1) instead to be valid here?
The value of $foobar should be the element itself, rather than its (document node?) parent, by my reading. Or have I misunderstood?

Thank you again for this suite.

@AndrewSales AndrewSales added the question Further information is requested label May 26, 2023
@dmj dmj added bug Something isn't working and removed question Further information is requested labels Jun 1, 2023
@dmj
Copy link
Member

dmj commented Jun 1, 2023

I think you are right! I mistakenly assumed the XSLT behavior of a xsl:variable w/o type information to be the right thing to do, i..e. wrap the element node in a document node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants