-
Notifications
You must be signed in to change notification settings - Fork 3
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
[Breaking Changes] attribute-based node protection #107
base: main
Are you sure you want to change the base?
Commits on Apr 18, 2024
-
testing attribute-based protection [skip ci]
I've modified the escape-text function escape text based on wether or not it exists in an escapable range. This commit implements a proof of concept that protects the first escapable character and will not pass check.
Configuration menu - View commit details
-
Copy full SHA for b45845f - Browse repository at this point
Copy the full SHA b45845fView commit details
Commits on Apr 19, 2024
-
first working version of protected escape text.
In this version, we no longer need to split nodes in order to protect them if we also want them to be continuous. I've taken the XSL template "escape-text" and modified it so that it takes in three new parameters: 1. `pos`..........the position of the current character 2. `protect.pos`..a space-separated list of starting positions for protection 3. `protect.end`..a space-separated list of ending positions for protection I've also added three new helper templates to handle list contents: `peek` returns the top of the list, `trim` trims off the first element of the list (or returns the value if it's not a list), and `adjust-range` trims a list depending on if the current value is within range. There's a lot of printing here because I wasn't too confident with debugging, but based on my test in inst/extdata/xml_protect.xml, it produces results correctly.
Configuration menu - View commit details
-
Copy full SHA for 1adfd97 - Browse repository at this point
Copy the full SHA 1adfd97View commit details -
Configuration menu - View commit details
-
Copy full SHA for f1c57ce - Browse repository at this point
Copy the full SHA f1c57ceView commit details
Commits on Apr 25, 2024
-
[xml] use embedded str:tokenize function via EXSLT
I had initially found a tokenize template and had contacted the author about license information (she gave permission): <https://exslt.github.io/str/functions/tokenize/str.tokenize.template.xsl.html> When I was working with it, I found that the function exists as part of libxml because it bundles EXSLT functions, which allows me to do this easier and more efficient by tracking and modifying a single index instead of a pair of strings.
Configuration menu - View commit details
-
Copy full SHA for 3041460 - Browse repository at this point
Copy the full SHA 3041460View commit details -
Configuration menu - View commit details
-
Copy full SHA for 31e5a0f - Browse repository at this point
Copy the full SHA 31e5a0fView commit details
Commits on Apr 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 90561ef - Browse repository at this point
Copy the full SHA 90561efView commit details
Commits on Apr 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a7b33c8 - Browse repository at this point
Copy the full SHA a7b33c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for aeb3f58 - Browse repository at this point
Copy the full SHA aeb3f58View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8aa181b - Browse repository at this point
Copy the full SHA 8aa181bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e51eceb - Browse repository at this point
Copy the full SHA e51ecebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b9ae6a - Browse repository at this point
Copy the full SHA 1b9ae6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 32d2ffd - Browse repository at this point
Copy the full SHA 32d2ffdView commit details -
Configuration menu - View commit details
-
Copy full SHA for cd95f58 - Browse repository at this point
Copy the full SHA cd95f58View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4b84fc - Browse repository at this point
Copy the full SHA a4b84fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c8d35b - Browse repository at this point
Copy the full SHA 7c8d35bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fd45728 - Browse repository at this point
Copy the full SHA fd45728View commit details -
Configuration menu - View commit details
-
Copy full SHA for f79c123 - Browse repository at this point
Copy the full SHA f79c123View commit details -
Configuration menu - View commit details
-
Copy full SHA for 29b9b3d - Browse repository at this point
Copy the full SHA 29b9b3dView commit details -
Merge branch 'fix-105-unprotect' of https://github.com/ropensci/tinkr …
…into fix-105-unprotect
Configuration menu - View commit details
-
Copy full SHA for cc8ab53 - Browse repository at this point
Copy the full SHA cc8ab53View commit details
Commits on Apr 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for bbc1e61 - Browse repository at this point
Copy the full SHA bbc1e61View commit details -
The square bracket _should_ be escaped since it's outside of the protected range.
Configuration menu - View commit details
-
Copy full SHA for b7c94ee - Browse repository at this point
Copy the full SHA b7c94eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for b478e97 - Browse repository at this point
Copy the full SHA b478e97View commit details -
Configuration menu - View commit details
-
Copy full SHA for 741fbd7 - Browse repository at this point
Copy the full SHA 741fbd7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2066ba7 - Browse repository at this point
Copy the full SHA 2066ba7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 739020a - Browse repository at this point
Copy the full SHA 739020aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9357b95 - Browse repository at this point
Copy the full SHA 9357b95View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2614c20 - Browse repository at this point
Copy the full SHA 2614c20View commit details
Commits on May 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for afef059 - Browse repository at this point
Copy the full SHA afef059View commit details -
add capability to split and rejoin protected nodes
This begins to address limitations of the attribute-based protection by providing a way to separate and rejoin nodes that were previously split.
Configuration menu - View commit details
-
Copy full SHA for 54c1d1f - Browse repository at this point
Copy the full SHA 54c1d1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for febfa2f - Browse repository at this point
Copy the full SHA febfa2fView commit details
Commits on May 2, 2024
-
The previous iteration was not quite correct because it had assumed that the sourcepos would match up exactly with the protection ranges, but these were two separate numbers. This does the following: 1. when a protected range spans the entire node, then it is labeled "asis" 2. `split_sourcepos()` now reflects the actual end of the sourcepos instead of the computed end 3. an awkward catch for single nodes in `join_split_nodes()` is now eliminated 4. `join_split_nodes()` no longer re-comuputes the protected ranges from the sourcepos
Configuration menu - View commit details
-
Copy full SHA for 7061241 - Browse repository at this point
Copy the full SHA 7061241View commit details -
add find_between_nodes from pegboard
This allows us to search for internal nodes using their identities
Configuration menu - View commit details
-
Copy full SHA for 9e7de72 - Browse repository at this point
Copy the full SHA 9e7de72View commit details -
Configuration menu - View commit details
-
Copy full SHA for acd560f - Browse repository at this point
Copy the full SHA acd560fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f22d2aa - Browse repository at this point
Copy the full SHA f22d2aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7875dea - Browse repository at this point
Copy the full SHA 7875deaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 37332f7 - Browse repository at this point
Copy the full SHA 37332f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb0032c - Browse repository at this point
Copy the full SHA bb0032cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4db2189 - Browse repository at this point
Copy the full SHA 4db2189View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37fc979 - Browse repository at this point
Copy the full SHA 37fc979View commit details
Commits on May 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6a6b3bc - Browse repository at this point
Copy the full SHA 6a6b3bcView commit details