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

mvar with document() fails to append #1

Open
philshafer opened this issue Jun 13, 2013 · 0 comments
Open

mvar with document() fails to append #1

philshafer opened this issue Jun 13, 2013 · 0 comments
Assignees
Labels

Comments

@philshafer
Copy link
Contributor

( Originally http://code.google.com/p/libslax/issues/detail?id=8 )

What steps will reproduce the problem?

  1. run "test-count-05.slax" test case

version 1.1;

var $last = document("test-count.xml");
mvar $one = $last/in;
mvar $two = $last/in/node();

match / {
{
{
{ copy-of $one; }
append $one += "one";
{ copy-of $one; }
}
{
{ copy-of $two; }
append $two += "one";
{ copy-of $two; }
}
}
}

What is the expected output? What do you see instead?

Neither of the append operations work.

Please use labels and text to provide additional information.

May 1, 2013 Delete comment
Project Member #1 phil.shafer

The is added to $slax-one, but not to $one:

(sdb) p $slax-one
node-set rtf-doc

1
2
3
4
5

one

(sdb) p $one
node-set

1
2
3
4
5

(sdb)

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

No branches or pull requests

1 participant