-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
STL2STLXML: add doc/tests for -a/-u params
Fixes zzhd/scf#116.
- Loading branch information
Showing
5 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
Binary file modified
BIN
+1.4 KB
(100%)
modules/STL2STLXML/documentation/requirements_stl2stlxml.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2014 Institut für Rundfunktechnik GmbH, Munich, Germany | ||
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 | ||
Unless required by applicable law or agreed to in writing, the subject work | ||
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. | ||
--> | ||
<schema xmlns="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt" schemaVersion="ISO19757-3"> | ||
<title>Testing of "-a" parameter that clears the UDA field of the GSI block.</title> | ||
<p>-a</p><!-- while the p element usually is used for text paragraphs, we use it to propagate parameters to the STL2STLXML call --> | ||
<pattern id="ClearUDA"> | ||
<rule context="/"> | ||
<assert test="StlXml/HEAD/GSI/UDA"> | ||
The UDA element must be present. | ||
</assert> | ||
</rule> | ||
<rule context="StlXml/HEAD/GSI/UDA"> | ||
<assert test="normalize-space(.) = ''"> | ||
Expected value: "" Value from test: "<value-of select="normalize-space(.)"/>" | ||
</assert> | ||
</rule> | ||
</pattern> | ||
</schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2014 Institut für Rundfunktechnik GmbH, Munich, Germany | ||
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 | ||
Unless required by applicable law or agreed to in writing, the subject work | ||
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. | ||
--> | ||
<schema xmlns="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt" schemaVersion="ISO19757-3"> | ||
<title>Testing of "-u" parameter that discards all TTI blocks with User Data.</title> | ||
<p>-u</p><!-- while the p element usually is used for text paragraphs, we use it to propagate parameters to the STL2STLXML call --> | ||
<pattern id="DiscardUserDataTTI"> | ||
<rule context="/"> | ||
<assert test="StlXml/BODY/TTICONTAINER/TTI/EBN"> | ||
The EBN element must be present. | ||
</assert> | ||
</rule> | ||
<rule context="StlXml/BODY/TTICONTAINER/TTI/EBN"> | ||
<assert test="normalize-space(.) != 'fe'"> | ||
User Data was found! | ||
</assert> | ||
</rule> | ||
</pattern> | ||
</schema> |