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

Added workaround for generating labels from a sequence of asset-ids in EFX 1 #96

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

rousso
Copy link
Contributor

@rousso rousso commented Nov 16, 2023

No description provided.

@Test
void testStandardLabelReference_WithAssetIdIterator() {
assertEquals(
"let block01() -> { label(distinct-values(for $item in for $t in ./normalize-space(text()) return $t return concat('field', '|', 'name', '|', $item))) }\nfor-each(/*/PathNode/TextField).call(block01())",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having 2 "for" in for $item in for $t in ./normalize... looks a bit weird, but it's not a real problem, and I guess it might be unavoidable.

Copy link
Contributor Author

@rousso rousso Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it looks weird, but you will not necessarily have a for loop in the sequence expression. The sequence expression could be something like ${('a', 'b', 'c')} for example.

@rousso rousso merged commit 8c8711f into develop Nov 16, 2023
1 check passed
@rousso rousso deleted the TEDEFO-2812-labels-from-sequence branch November 16, 2023 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants