xsl-list
[Top] [All Lists]

Re: [xsl] Attribute order recommendations

2020-08-25 10:14:04
I must be the only one who c14n's my xslt... just kidding, I don't
actually do that, but the thought made me laugh.

On Tue, Aug 25, 2020 at 7:11 AM Eliot Kimber ekimber(_at_)contrext(_dot_)com
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:

For templates I like: mode, match, as (when used), priority (when used)

For parameters: name, as, tunnel, select

I put select last so it's easy to cut and paste <xsl:with-param> to be 
<xsl:param> where @select is not retained (and visa-versa).

Cheers,

E.

--
Eliot Kimber
http://contrext.com


On 8/25/20, 5:40 AM, "Graydon graydon(_at_)marost(_dot_)ca" 
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:

    On Tue, Aug 25, 2020 at 08:24:02AM -0000, Norman Tovey-Walsh 
ndw(_at_)nwalsh(_dot_)com scripsit:
    [snip diverse examples]
    > I guess I do have a strong (subconscious) preference for putting the
    > name and the type on the same line!

    I appear to be the sort of consistency-valuing heathen who turns on
    "sort attributes" in oXygen.

    --
    Graydon Saunders  | graydonish(_at_)gmail(_dot_)com
    Þæs oferéode, ðisses swá mæg.
    -- Deor  ("That passed, so may this.")



--~----------------------------------------------------------------
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>