diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 9cb8665..9676dab 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -15,9 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: java-version: '11' distribution: 'temurin' @@ -25,7 +25,7 @@ jobs: - name: Build with Maven run: mvn -B package --file pom.xml - name: Upload package - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: Package path: target/*.jar diff --git a/README.md b/README.md index 35b987b..1df7a12 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,9 @@ Generates FIXML schemas from an Orchestra file. ### Input -An Orchestra file that conforms to the XML schema of Orchestra version 1.0 RC4. -See GitHub project fix-orchestra module repository (https://github.com/FIXTradingCommunity/fix-orchestra/blob/master/repository/src/main/resources/xsd/repository.xsd) for the schema. +An Orchestra file that conforms to the XML schema of Orchestra version 1.0. +See http://fixprotocol.io/2020/orchestra/repository for the schema. + #### Parameter `targetDir` give a path to write output files @@ -25,6 +26,17 @@ Any standards-compliant XSLT 2.0 processor. The test wrapper uses Saxon-HE. A Maven/Java wrapper is provided to invoke and test the script. This is not a run-time requirement. -## Deployment +## License +© Copyright 2020-2025 FIX Protocol Limited + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 -The ultimate build and deployment process has not yet been decided. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/src/main/resources/xsl/FIXMLSchemaGenerator.xsl b/src/main/resources/xsl/FIXMLSchemaGenerator.xsl index 32c8cec..f97dc49 100644 --- a/src/main/resources/xsl/FIXMLSchemaGenerator.xsl +++ b/src/main/resources/xsl/FIXMLSchemaGenerator.xsl @@ -1,16 +1,34 @@ - - + +xmlns:fixr="http://fixprotocol.io/2020/orchestra/repository"> + + 2014-05-07 - + @@ -18,23 +36,23 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - FIXML Schema Version + FIXML Schema Version Generated: Copyright(c) FIX Protocol Limited. All rights reserved. - Comments and errors should be posted on the FIX protocol web-site https://www.fixtrading.org/ - + Comments and errors should be posted on the FIX Protocol web-site https://www.fixtrading.org/ + - + - + - + http://www.w3.org/2001/XMLSchema @@ -53,8 +71,7 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - - BaseHeader + BaseHeader @@ -74,15 +91,7 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - true - false - - - - - - - true + true false @@ -90,7 +99,7 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - true + true false @@ -98,29 +107,33 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - true + true false - + - - + - - - + + - XMLDataBlock - BlockRepeating + + + + BlockRepeating + XMLDataBlock Block + + + - + @@ -133,7 +146,9 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + + + @@ -148,7 +163,7 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + @@ -176,7 +191,7 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + @@ -185,8 +200,8 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ + - @@ -223,7 +238,7 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + @@ -241,7 +256,8 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + + @@ -268,9 +284,10 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ + - + 0 @@ -278,7 +295,11 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ + + + 0 + unbounded @@ -289,6 +310,7 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ + @@ -313,16 +335,16 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + - + - can be found in Volume of the - specification + can be found at https://www.fixtrading.org/online-specification/business-area-#msg + FIX @@ -352,8 +374,10 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ + + + BlockRepeating XMLDataBlock - BlockRepeating Block @@ -374,15 +398,22 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - - - 0 - unbounded - - - 0 - - + + + + + 0 + 1 + + + unbounded + 1 + @@ -391,12 +422,14 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - - - Start of inlined elements from component: + + + + + Start of inlined elements from component: - End of inlined elements from component: + End of inlined elements from component: @@ -404,7 +437,7 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + @@ -419,7 +452,7 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + @@ -433,29 +466,27 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - - - - - - - - - - - - - - - required - - - optional - - + + + + + + + + + + + + + + required + + + optional + + - @@ -463,26 +494,27 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + - - - - - - - - - - - + + + + + + + + + + - - - Start of inlined attributes from component: + + + + + Start of inlined attributes from component: - End of inlined attributes from component: + End of inlined attributes from component: @@ -507,7 +539,14 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - _Block_t + + + BaseHeader_t + + + _Block_t + + @@ -548,7 +587,12 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + + + () defined in + implementation file + + @@ -561,8 +605,9 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ + - + @@ -572,7 +617,8 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + + @@ -583,8 +629,9 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - - + + + @@ -595,34 +642,34 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + xs:string [ - - + + ](\s[ - - + + ])* - + xs:string ( - + ( - + ) | @@ -630,9 +677,9 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ )(\s( - + ( - + ) | @@ -645,7 +692,7 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + @@ -659,16 +706,34 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + + + + - + - + + + + + + + + + + + + + + + + @@ -698,11 +763,11 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + - + @@ -730,7 +795,7 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + @@ -750,18 +815,18 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + - + - + @@ -771,14 +836,14 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + - fields-impl + fields-impl components-impl @@ -788,20 +853,20 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + - + - + - + @@ -820,7 +885,8 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + + @@ -834,9 +900,9 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + + - @@ -845,14 +911,16 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + + - + + @@ -867,7 +935,8 @@ xmlns:fixr="http://fixprotocol.io/2016/fixrepository" xmlns:dc="http://purl.org/ - + +