Code Monkey home page Code Monkey logo

Comments (7)

AndrewSales avatar AndrewSales commented on July 17, 2024

@rjelliffe is it worth extending this approach to concrete patterns and rule-sets too?
For ease of maintenance and composing schemas from shared libraries, for example.

from schematron-enhancement-proposals.

rjelliffe avatar rjelliffe commented on July 17, 2024

from schematron-enhancement-proposals.

dmj avatar dmj commented on July 17, 2024

I was looking into the potential of a sch:schema/sch:import element that imports global definitions of another schematron. I.e. patterns, phases, diagnostics, properties, name space declarations, variables etc.

A new top-level element for imports rather/complementary to a sch:library allows us to specify all aspects of the importing behavior, i.e. what to do with conflics.

from schematron-enhancement-proposals.

rjelliffe avatar rjelliffe commented on July 17, 2024

from schematron-enhancement-proposals.

AndrewSales avatar AndrewSales commented on July 17, 2024

Would it be better to allow the existing sch:import and sch:extends to allow IDs or fragment identifiers so that you can, e.g. import the named elements.

include and extends already do, don't they?

I was looking into the potential of a sch:schema/sch:import element that imports global definitions [...]

@dmj can you raise a separate issue for this? Thanks.

from schematron-enhancement-proposals.

rjelliffe avatar rjelliffe commented on July 17, 2024

from schematron-enhancement-proposals.

dmj avatar dmj commented on July 17, 2024

Would it be better to allow the existing sch:import and sch:extends to allow IDs or fragment identifiers so that you can, e.g. import the named elements. Rick

This would still require a specification of importing items from another ISO schematron. A pattern, rule, assertion etc. may use top-level constructs such as diagnostics, properties, variables, or functions.

I think we could discuss this separately: a. Specify an importing mechanism, i.e. how to make top-level constructs from a different schema available and b. discuss if sch:extends would be a fit or if we need a distinct schematron element.

@AndrewSales Will raise an issue on importing.

from schematron-enhancement-proposals.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.