Page 1 of 1

xsl variable auto complete - improvement suggestion

Posted: Mon May 11, 2009 5:45 pm
by Radu3000
Hello,

I just got back into xslt after a lengthy break. Here is a suggestion that may save some time (in my case a few hours of debugging) - especially when one starts xslt from scratch:

Change the xsl:var auto-complete from:
<xsl:variable name=""></xsl:variable>
to
<xsl:variable name="" select="">

The second one is used - I would say in over 80% cases - based on my experience.

- Can I do it myself by changing some oxygen template?

Thanks,
Radu.

Re: xsl variable auto complete - improvement suggestion

Posted: Tue May 12, 2009 5:52 pm
by sorin_ristache
Hello,

The select attribute is not a required attribute of xsl:variable. We cannot insert it when the name attribute is inserted because that can confuse the users about the required and not required attributes. They will think that the name attribute must be always specified which is not true.


Regards,
Sorin

Re: xsl variable auto complete - improvement suggestion

Posted: Fri Jun 19, 2009 12:27 pm
by kennedyusa058
This is an interesting discussion.. thank you for sharing.

pret auto