-
-
Notifications
You must be signed in to change notification settings - Fork 726
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
GH2524: Added support for XSL arguments in XmlTransform #2589
Conversation
Just curious, did I something wrong with this pull request? Please tell me... |
@deqenq sorry, you've done nothing wrong, current status it's on the Cake team to fully review this, which we've unfortunately not gotten around to yet. |
Should I try to resuscitate this pull request or not? That's the question. |
6461ac9
to
a307768
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deqenq sorry for this late feedback. The changes look good.
However, there are - in addition to the static XmlTransformation.Transform()
methods - also corresponding overloads in XmlTransformationAlias
to be used as extensions to the ICakeContext
.
Are you in a position to add those, as well?
Also, I would much rather prefer to have the XsltArgumentList
as a property to the XmlTransformationSettings
instead of having another set of overloads.
@nils-a Thank you for your suggestions, I will try to fix it. |
- XsltArgumentList can be null according to the documentation - fixed tests - fixed exception messages to be aligned to documentation - no need to overloaded aliases
- XsltArgumentList can be null according to the documentation - fixed tests - fixed exception messages to be aligned to documentation - no need to overloaded aliases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@deqenq your changes have been merged, thanks for your contribution 👍 |
fixes #2524
I added two overloaded XmlTransform methods that accept XsltArgumentList as arguments for XSL tranformation. Also new unit tests were added - I tried to use existing input/output sample data as much as possible so there are only two new XSL definitions (with arguments) needed.