Project

Profile

Help

Support #5496

closed

Explicit document versus implicit document

Added by Jiri Dolejsi almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2022-05-18
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
11
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:
.NET

Description

in this case validation is preserved:
<xsl:mode on-no-match="shallow-copy"/>
 <xsl:template match="/">
    <xsl:apply-templates select="/newsItem"/>
</xsl:template>

in this case validation is striped:
<xsl:mode on-no-match="shallow-copy"/>
 <xsl:template match="/">
    <xsl:document>
       <xsl:apply-templates select="/newsItem"/>
    </xsl:document>
</xsl:template>

In our application we evaluate xpath on transformed document and in the first case it returned error: The supplied node has been schema-validated, but the XPath expression was compiled without schema-awareness but in second case it return success.

Please register to edit this issue

Also available in: Atom PDF