Subject: Re: [xsl] Best practice for typing? From: "Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sun, 24 Nov 2019 10:40:46 -0000 |
<xsl:variable name="var1"> <doc> <p/> </doc> </xsl:variable>
<xsl:variable name="var2" as="element(*)"> <doc> <p/> </doc> </xsl:variable>
<xsl:variable name="var"> <doc> <p>text<fn> <p>footnote</p> </fn></p> </doc> </xsl:variable>
<xsl:variable name="var1" as="document-node(element(*))"> <xsl:document> <doc> <p/> </doc> </xsl:document> </xsl:variable>
[1] https://www.w3.org/TR/xslt-30/#temporary-trees [2] https://twitter.com/gimsieke/status/756810053613678592 [3] https://twitter.com/gimsieke/status/233936479917846528
On Sat, 2019-11-23 at 01:44 +0000, David Birnbaum djbpitt@xxxxxxxxx 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Best practice for typing?, Liam R. E. Quin liam | Thread | Re: [xsl] Best practice for typing?, Syd Bauman s.bauman@ |
Re: [xsl] Best practice for typing?, Liam R. E. Quin liam | Date | [xsl] Splitting a paragraph into se, Rick Quatro rick@xxx |
Month |