Project

Profile

Help

Support #3618

closed

Schema aware warning not presented if I validate with Saxon 9.8.0.7

Added by Octavian Nadolu almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Schema-Aware processing
Sprint/Milestone:
-
Start date:
2018-01-12
Due date:
% Done:

0%

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

Description

If I validate the following XSL with Saxon 9.7.0.19 I get an warning

"SXWN9000: The complex type of element person does not allow a child element named c"

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    exclude-result-prefixes="xs"
    version="2.0">
    <xsl:import-schema schema-location="personal.xsd"></xsl:import-schema>
    <xsl:template match="schema-element(person)">
        <xsl:variable name="v" as="xs:string?" select="c"/>
        <xsl:value-of select="$v"/>
    </xsl:template>
</xsl:stylesheet>

This warning is not presented anymore if I validate with Saxon 9.8.0.7


Files

personal.xsd (3.69 KB) personal.xsd Octavian Nadolu, 2018-01-15 08:34

Please register to edit this issue

Also available in: Atom PDF