Project

Profile

Help

Feature #6303

open

`xsl:result-document` method that replaces `outerHTML`

Added by Martynas Jusevicius 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
IXSL extensions
Sprint/Milestone:
-
Start date:
2023-12-22
Due date:
% Done:

0%

Estimated time:
Applies to JS Branch:
2
Fix Committed on JS Branch:
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

Currently <xsl:result-document method="ixsl:replace-content"> replaces the equivalent of innerHTML.

Therefore I often find myself doing stuff like this:

<xsl:variable name="row" as="node()*">
    <xsl:apply-templates select="$resource" mode="bs2:Row"/>
</xsl:variable>

<xsl:result-document href="?." method="ixsl:replace-content">
    <xsl:copy-of select="$row/*"/>
</xsl:result-document>

Whereas it would be much more convenient to have a new method such as ixsl:replace-self that would replace outerHTML. My example would look much simpler then:

<xsl:result-document href="?." method="ixsl:replace-self">
    <xsl:apply-templates select="$resource" mode="bs2:Row"/>
</xsl:result-document>

No data to display

Please register to edit this issue

Also available in: Atom PDF Tracking page