Skip to content
This repository was archived by the owner on Mar 10, 2021. It is now read-only.

Commit 7b680e2

Browse files
Begin recognising elements and attributes (#1)
* Begin recognising elements and attributes * Not meant * Might be needed * New lines * Reduce nesting * Ignore line numbers when we have a node * Simpler constraints * Move source to src * Add to README * Tweaks * Make warnings * Update attributes
1 parent d1531f2 commit 7b680e2

File tree

288 files changed

+5596
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

288 files changed

+5596
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/*.* export-ignore
2+
/tests export-ignore

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/.phpcs-cache
2+
/phpcs.xml
3+
/phpstan.neon
4+
/phpunit.xml
5+
/vendor/

.travis.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
language: php
2+
3+
php: 7.3
4+
5+
before_install:
6+
- phpenv config-rm xdebug.ini || true
7+
8+
install:
9+
- travis_retry composer install --classmap-authoritative --no-suggest --prefer-dist
10+
11+
jobs:
12+
include:
13+
14+
- stage: Test
15+
name: Tests
16+
script:
17+
- vendor/bin/phpunit
18+
19+
- stage: Code Quality
20+
name: Coding standards
21+
script:
22+
- vendor/bin/phpcs -p
23+
24+
- stage: Code Quality
25+
name: Static analysis
26+
script:
27+
- vendor/bin/phpstan analyse
28+
29+
stages:
30+
- Test
31+
- name: Code Quality
32+
if: type = pull_request
33+
34+
cache:
35+
directories:
36+
- $HOME/.composer/cache/files
37+
38+
if: |
39+
branch = master OR \
40+
branch =~ /^(?:[0-9]|[1-9][0-9]*)\.(?:[0-9]|[1-9][0-9]*)$/ OR \
41+
tag IS present OR \
42+
type = pull_request

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
Libero JATS support
22
===================
33

4+
[![Build Status](https://travis-ci.com/libero/jats-support.svg?branch=master)](https://travis-ci.com/libero/jats-support)
5+
6+
The library contains [Schematron](http://schematron.com/) that can be applied to any [Journal Article Tag Suite
7+
(JATS)](https://jats.nlm.nih.gov/) document to check for native support in [Libero](https://libero.pub).
8+
9+
It uses [XSLT 1.0](https://www.w3.org/TR/1999/REC-xslt-19991116) so that it is compatible with
10+
[libxslt](http://xmlsoft.org/XSLT/intro.html), and so natively supported by languages such as PHP and Python.
11+
12+
Getting started
13+
---------------
14+
15+
Apply [`src/support.sch`](src/support.sch) to your document, using, for example:
16+
17+
- [Oxygen XML Editor](https://www.oxygenxml.com/demo/Schematron_Validation.html)
18+
- [XML Validator library](https://github.com/libero/xml-validator) (PHP)
19+
- [lxml](https://lxml.de/validation.html#id2) (Python)
20+
421
Getting help
522
------------
623

composer.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"type": "project",
3+
"license": "MIT",
4+
"autoload-dev": {
5+
"psr-4": {
6+
"tests\\Libero\\JatsSupport\\": "tests/"
7+
}
8+
},
9+
"require-dev": {
10+
"php": "^7.3",
11+
"ext-dom": "*",
12+
"ext-xsl": "*",
13+
"fluentdom/fluentdom": "^7.1",
14+
"jats/schema": "^1.1",
15+
"libero/coding-standard": "^0.4",
16+
"libero/xml-validator": "^0.2",
17+
"lstrojny/functional-php": "^1.9",
18+
"phpstan/phpstan": "^0.11",
19+
"phpstan/phpstan-phpunit": "^0.11",
20+
"phpunit/phpunit": "^8.0",
21+
"symfony/finder": "^4.2"
22+
},
23+
"config": {
24+
"platform": {
25+
"php": "7.3.0"
26+
},
27+
"secure-http": false,
28+
"sort-packages": true
29+
},
30+
"repositories": [
31+
{
32+
"type": "package",
33+
"package": {
34+
"name": "jats/schema",
35+
"version": "1.1",
36+
"dist": {
37+
"url": "ftp://ftp.ncbi.nih.gov/pub/jats/archiving/1.1/rng/JATS-Archiving-1-1-MathML3-DTD-RNG.zip",
38+
"type": "zip"
39+
}
40+
}
41+
}
42+
]
43+
}

0 commit comments

Comments
 (0)