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

Data traversal? #12

Open
madeleineostoja opened this issue Aug 1, 2017 · 0 comments
Open

Data traversal? #12

madeleineostoja opened this issue Aug 1, 2017 · 0 comments
Labels

Comments

@madeleineostoja
Copy link

Allow simpla-paths to traverse up/down the tree in attributes, using dot notation inside SIDs/GIDs. Fixes the use-case where markup structure doesn't perfectly match content structure, especially with shared code and complex content models

  • foo.bar to traverse down a tree

  • ..baz to traverse up a tree (additional dot for each level up)

  • Can combine patterns, eg: ..baz.qux

  • Can traverse in both SIDs and GIDs (obvs GIDs can only traverse down, useful for removing unecssary nesting)

  • If the key accessed with traversing doesn’t exist, it is created as per usual

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