xsl-list
[Top] [All Lists]

Re: [xsl] Best practice for typing?

2019-11-24 02:19:03
On Sat, 2019-11-23 at 01:44 +0000, David Birnbaum djbpitt(_at_)gmail(_dot_)com
wrote:

Is there a consensus about best practice with respect to possibly
redundant
typing? For example, we can specify a type using @as on corresponding
<xsl:param> and <xsl:with-param> elements, but if the type is
specified on
<xsl:param>, it seems as if that might make it redundant also to
specify it
on <xsl:with-param>, 

Something not i think mentioned by others -

It helps to make your stylesheet resilient to change. Of course, it may
also increase the effort of making such changes, but the things you
need to change would in any case need review.

Liam

-- 
Liam Quin, https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations:  http://www.fromoldbooks.org
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>