Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libdvbpsi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
libdvbpsi
Commits
cad97408
Commit
cad97408
authored
Jan 27, 2016
by
Daniel Kamil Kozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
actually validate the XML with the DTD
parent
d826d629
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
91 additions
and
83 deletions
+91
-83
misc/Makefile.am
misc/Makefile.am
+1
-0
misc/dr.dtd
misc/dr.dtd
+18
-13
misc/test_dr.c
misc/test_dr.c
+72
-70
No files found.
misc/Makefile.am
View file @
cad97408
...
@@ -26,5 +26,6 @@ noinst_HEADERS = test_dr.h test_dr_cmp.h
...
@@ -26,5 +26,6 @@ noinst_HEADERS = test_dr.h test_dr_cmp.h
EXTRA_DIST
=
dr.dtd dr.xml dr.xsl
EXTRA_DIST
=
dr.dtd dr.xml dr.xsl
test_dr.c
:
dr.dtd dr.xml dr.xsl
test_dr.c
:
dr.dtd dr.xml dr.xsl
xmllint
--noout
--valid
dr.xml
xsltproc
-o
test_dr.c dr.xsl dr.xml
xsltproc
-o
test_dr.c dr.xsl dr.xml
misc/dr.dtd
View file @
cad97408
<!ELEMENT dr (descriptor*)>
<!ELEMENT dr (descriptor*)>
<!ELEMENT descriptor (integer | boolean | insert | array)*>
<!ELEMENT descriptor (integer | boolean | insert | array
| carray
)*>
<!ELEMENT integer EMPTY>
<!ELEMENT integer EMPTY>
...
@@ -8,25 +8,30 @@
...
@@ -8,25 +8,30 @@
<!ELEMENT array EMPTY>
<!ELEMENT array EMPTY>
<!ELEMENT carray EMPTY>
<!ELEMENT insert (begin? | check? | end?)>
<!ELEMENT insert (begin? | check? | end?)>
<!ELEMENT begin (#PCDATA)>
<!ELEMENT begin (#PCDATA)>
<!ELEMENT check (#PCDATA)>
<!ELEMENT check (#PCDATA)>
<!ATTLIST descriptor name CDATA #
IMPLI
ED>
<!ATTLIST descriptor name CDATA #
REQUIR
ED>
<!ATTLIST descriptor sname CDATA #
IMPLI
ED>
<!ATTLIST descriptor sname CDATA #
REQUIR
ED>
<!ATTLIST descriptor msuffix CDATA
#IMPLIED
>
<!ATTLIST descriptor msuffix CDATA
"0"
>
<!ATTLIST descriptor gen_args CDATA
#IMPLIED
>
<!ATTLIST descriptor gen_args CDATA
"0"
>
<!ATTLIST integer name CDATA #
IMPLI
ED>
<!ATTLIST integer name CDATA #
REQUIR
ED>
<!ATTLIST integer bitcount CDATA #
IMPLI
ED>
<!ATTLIST integer bitcount CDATA #
REQUIR
ED>
<!ATTLIST integer default CDATA #
IMPLI
ED>
<!ATTLIST integer default CDATA #
REQUIR
ED>
<!ATTLIST boolean name CDATA #
IMPLI
ED>
<!ATTLIST boolean name CDATA #
REQUIR
ED>
<!ATTLIST boolean default CDATA #
IMPLI
ED>
<!ATTLIST boolean default CDATA #
REQUIR
ED>
<!ATTLIST array name CDATA #IMPLIED>
<!ATTLIST array name CDATA #REQUIRED>
<!ATTLIST array len_name CDATA #IMPLIED>
<!ATTLIST array len_name CDATA #REQUIRED>
<!ATTLIST array min_size CDATA #IMPLIED>
<!ATTLIST array min_size CDATA #REQUIRED>
<!ATTLIST array max_size CDATA #IMPLIED>
<!ATTLIST array type CDATA #IMPLIED>
<!ATTLIST array type CDATA #IMPLIED>
<!ATTLIST carray name CDATA #REQUIRED>
misc/test_dr.c
View file @
cad97408
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment