Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace asterix2json with asterixjson2xml in documentation #209

Merged
merged 1 commit into from
Dec 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions asterix-specs-converter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ using a script from this directory.
In case of problems in asterix definitions, users of this project are
encouraged to report problems upstream.

## Running `asterix2json.py` script
## Running `asterixjson2xml.py` script

> **_NOTE:_** `asterix2json.py` script requires `python36` or higher.
> **_NOTE:_** `asterixjson2xml.py` script requires `python36` or higher.

### Basic conversion example:

Expand All @@ -49,16 +49,16 @@ python3 --version
curl https://zoranbosnjak.github.io/asterix-specs/specs/cat062/cats/cat1.18/definition.json > input.json

# convert json to xml
python3 asterix2json.py < input.json > output.xml
python3 asterixjson2xml.py < input.json > output.xml

# or directly
curl https://zoranbosnjak.github.io/asterix-specs/specs/cat062/cats/cat1.18/definition.json | python3 asterix2json.py
curl https://zoranbosnjak.github.io/asterix-specs/specs/cat062/cats/cat1.18/definition.json | python3 asterixjson2xml.py
```

### Combine CAT+REF definition to a single xml:

```bash
python3 asterix2json.py --cat category.json --ref ref.json --outfile out.xml
python3 asterixjson2xml.py --cat category.json --ref ref.json --outfile out.xml
```
## Running `update-specs.py` script
This scripts autimatically reads latest Asterix specifications from
Expand All @@ -77,7 +77,7 @@ python3 update-specs.py
- commit new/changed `.xml` file to this repository;

> **_NOTE:_** If the resulting `.xml` file in not as expected, check/modify
the `asterix2json.py` script.
the `asterixjson2xml.py` script.

> **_NOTE:_** Do not manually edit converted `.xml` files if possible.

Expand Down