The default urlrewrite.xml file (and I assume others that are derived from it manually by users) uses the urlrewrite DTD in version 3.2, even though the latest version is 4.0.3/4 (not sure what exactly is bundled in runwar).
The problem with the DTD is version 3.2 are the two lines below - they don't validate against 3.2, but only against the 4.0 DTD.
This will most likely not cause an issue with any code, but at least it'll create a confusing impression when one is using an IDE with DTD validation (such as IntelliJ).
1. Change DTD in the default rewrite xml file to:
2. Update all samples/documentation accordingly.
Great ticket , I honestly never even noticed the rewrite files had a DTD. Those two features were “recent” additions to the library. And by recent, I mean years ago, but it’s been a very slow moving library. Can you send a pull to update the default XML rewrite file?
Yup, will do that as an intermediate fix.
Following our discussion in CB Slack and the "discovery" that there's a 5.0.x fork being used in runwar, I'm wondering if there shouldn't be an accordingly maintained DTD for 5.0 hosted on cfmlproject.org. That'd certainly be the ideal solution.
So far as I know, our fork of tuckey rewrites hasn’t added anything to the DTD that isn’t in the main project’s 4.0 version.
for the code
for doc change