XSLT Improvement for Form
This is an open discussion with 2 replies, filed under XSLT.
Search
Actually you can use the form id as your anchor. I think it’s ok with your XSL.
You can’t get much more succinct than what you have. You could possibly use a single template to create each form-element
div
, to which you would need to pass the name, type, error message etc; but I don’t think it would save much code.
This is why I wrote Form Controls. Writing form UI logic is boring!
Create an account or sign in to comment.
Hi I’m trying to get figure out best practices for writing XSLT and cut down on repeated code. I was wondering if anyone could give me some advice on how to improve my Send CV form below:
The Form: