From 65a11d5976647d0de6991197a97e6e354052813c Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Sat, 13 Jul 2019 15:01:27 +0200 Subject: [PATCH] generate an intemediate clean Matroska Schema before generating the RFC Ultimately ebml_matroska.xml will go away or will be replaced with this one. --- Makefile | 10 ++- transforms/schema_clean.xsl | 124 ++++++++++++++++++++++++++++++++++++ 2 files changed, 132 insertions(+), 2 deletions(-) create mode 100644 transforms/schema_clean.xsl diff --git a/Makefile b/Makefile index 8eb6afa9..d86860d5 100644 --- a/Makefile +++ b/Makefile @@ -12,8 +12,14 @@ OUTPUT_TAGS := $(STATUS_TAGS)ietf-cellar-tags-$(VERSION_TAGS) all: $(OUTPUT_MATROSKA).html $(OUTPUT_MATROSKA).txt $(OUTPUT_MATROSKA).xml $(OUTPUT_CODEC).html $(OUTPUT_CODEC).txt $(OUTPUT_CODEC).xml $(OUTPUT_TAGS).html $(OUTPUT_TAGS).txt $(OUTPUT_TAGS).xml -ebml_matroska_elements4rfc.md: ebml_matroska.xml transforms/ebml_schema2markdown4rfc.xsl - xsltproc transforms/ebml_schema2markdown4rfc.xsl ebml_matroska.xml > $@ +matroska_xsd.xml: transforms/schema_clean.xsl ebml_matroska.xml + xsltproc transforms/schema_clean.xsl ebml_matroska.xml > $@ + +check: matroska_xsd.xml + xmllint --noout --schema ../ebml-specification/EBMLSchema.xsd matroska_xsd.xml + +ebml_matroska_elements4rfc.md: transforms/ebml_schema2markdown4rfc.xsl matroska_xsd.xml + xsltproc transforms/ebml_schema2markdown4rfc.xsl matroska_xsd.xml > $@ $(OUTPUT_MATROSKA).md: index_matroska.md diagram.md matroska_schema_section_header.md ebml_matroska_elements4rfc.md ordering.md chapters.md attachments.md cues.md streaming.md menu.md notes.md cat $^ | grep -v '^---' > $@ diff --git a/transforms/schema_clean.xsl b/transforms/schema_clean.xsl new file mode 100644 index 00000000..9da4e7d6 --- /dev/null +++ b/transforms/schema_clean.xsl @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + placeholder before parsePath is called + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + definition + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +