Re: [xsl] output the result of the transformation twice, indented and not indented, without duplicating the code
2022-05-23 15:52:30
Indeed it is ... but what if already you had written a template for
the root node? Using <xsl:apply-templates/> as you have above would
push the children of the root node and your previously-written
template for the root node never would be triggered.
I understand now. Indeed, I already had a template for the root node. I
solved this issue by putting that code into a template for the root
element (rather than root node).
Graydon's approach saves the time for executing the transformation
twice, but with the penalty of internal storage, so you would have to
factor that in to weighing your alternatives.
Thanks a lot for the explanation!
Wolfhart
--~----------------------------------------------------------------
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>
|
- [xsl] output the result of the transformation twice, indented and not indented, without duplicating the code, Wolfhart Totschnig wolfhart(_dot_)totschnig(_at_)mail(_dot_)udp(_dot_)cl
- Re: [xsl] output the result of the transformation twice, indented and not indented, without duplicating the code, G. Ken Holman g(_dot_)ken(_dot_)holman(_at_)gmail(_dot_)com
- Re: [xsl] output the result of the transformation twice, indented and not indented, without duplicating the code, Martin Honnen martin(_dot_)honnen(_at_)gmx(_dot_)de
- Re: [xsl] output the result of the transformation twice, indented and not indented, without duplicating the code, G. Ken Holman g(_dot_)ken(_dot_)holman(_at_)gmail(_dot_)com
- Re: [xsl] output the result of the transformation twice, indented and not indented, without duplicating the code, Martin Honnen martin(_dot_)honnen(_at_)gmx(_dot_)de
- Re: [xsl] output the result of the transformation twice, indented and not indented, without duplicating the code, Wolfhart Totschnig wolfhart(_dot_)totschnig(_at_)mail(_dot_)udp(_dot_)cl
- Re: [xsl] output the result of the transformation twice, indented and not indented, without duplicating the code, G. Ken Holman g(_dot_)ken(_dot_)holman(_at_)gmail(_dot_)com
- Re: [xsl] output the result of the transformation twice, indented and not indented, without duplicating the code,
Wolfhart Totschnig wolfhart(_dot_)totschnig(_at_)mail(_dot_)udp(_dot_)cl <=
- Re: [xsl] output the result of the transformation twice, indented and not indented, without duplicating the code, Imsieke, Gerrit, le-tex gerrit(_dot_)imsieke(_at_)le-tex(_dot_)de
Re: [xsl] output the result of the transformation twice, indented and not indented, without duplicating the code, Graydon graydon(_at_)marost(_dot_)ca
|
Previous by Date: |
Re: [xsl] output the result of the transformation twice, indented and not indented, without duplicating the code, G. Ken Holman g(_dot_)ken(_dot_)holman(_at_)gmail(_dot_)com |
Next by Date: |
Re: [xsl] output the result of the transformation twice, indented and not indented, without duplicating the code, Imsieke, Gerrit, le-tex gerrit(_dot_)imsieke(_at_)le-tex(_dot_)de |
Previous by Thread: |
Re: [xsl] output the result of the transformation twice, indented and not indented, without duplicating the code, G. Ken Holman g(_dot_)ken(_dot_)holman(_at_)gmail(_dot_)com |
Next by Thread: |
Re: [xsl] output the result of the transformation twice, indented and not indented, without duplicating the code, Imsieke, Gerrit, le-tex gerrit(_dot_)imsieke(_at_)le-tex(_dot_)de |
Indexes: |
[Date]
[Thread]
[Top]
[All Lists] |
|
|