Skip to content
This repository was archived by the owner on Nov 2, 2020. It is now read-only.
This repository was archived by the owner on Nov 2, 2020. It is now read-only.

attribute nodes in context of schematron rule #44

@andreastai

Description

@andreastai

This may be related to #29.

Source Document

<bar foo="value"/>

Schematron Schema

<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
    <sch:pattern>
        <sch:rule context="@foo">
            <sch:assert test="false()">There should be no foo attribute.</sch:assert>
        </sch:rule>
    </sch:pattern>
</sch:schema>

The XSLT from the schema is compiled with iso_svrl_for_xslt2.xsl.

The compiled schematron XSLT does not fire for the attribute @foo. Attributes in general (given as context) seem not to work.

The schematron implementation in @oxygenxml provides the expected error.

Is this a bug in the skeleton implementation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions