Skip to content

Commit

Permalink
adjust text to move element descriptions up a level and limit section…
Browse files Browse the repository at this point in the history
…al depth to 6
  • Loading branch information
dericed committed Jul 25, 2018
1 parent e0b6a68 commit 59554fc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ $(OUTPUT_TAGS).md: index_tags.md tagging.md matroska_tagging_registry.md tagging
cat $^ > $@

%.xml: %.md
mmark -xml2 -page $< | awk '/<?rfc toc=/ && !modif { printf("<?rfc tocdepth=\"12\"?>\n"); modif=1 } {print}' > $@
mmark -xml2 -page $< | awk '/<?rfc toc=/ && !modif { printf("<?rfc tocdepth=\"6\"?>\n"); modif=1 } {print}' > $@

%.html: %.xml
xml2rfc --html $< -o $@
Expand Down
11 changes: 4 additions & 7 deletions matroska_schema_section_header.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@

# Matroska Schema

This specification includes an `EBML Schema` which defines the Elements and structure of Matroska as an EBML Document Type. The EBML Schema defines every valid Matroska element in a manner defined by the EBML specification.

## Matroska Additions to Schema Element Attributes
# Matroska Additions to Schema Element Attributes

In addition to the EBML Schema definition provided by the EBML Specification, Matroska adds the following additional attributes:

| attribute name | required | definition |
|:---------------|:---------|:-----------|
| webm | No | A boolean to express if the Matroska Element is also supported within version 2 of the `webm` specification. Please consider the [webm specification](http://www.webmproject.org/docs/container/) as the authoritative on `webm`. |

## Matroska Schema Element Definitions
# Matroska Schema

This specification includes an `EBML Schema` which defines the Elements and structure of Matroska as an EBML Document Type. The EBML Schema defines every valid Matroska element in a manner defined by the EBML specification.

Here the definition of each Matroska Element is provided.

% concatenate with Matroska EBML Schema converted to markdown %
4 changes: 2 additions & 2 deletions transforms/ebml_schema2markdown4rfc.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<xsl:template match="element">
<xsl:choose>
<xsl:when test="contains(@path,'\EBML\')">
<xsl:text>###</xsl:text>
<xsl:text>##</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring('############################',1,count(str:tokenize(@path,'\'))+1)"/>
<xsl:value-of select="substring('######',1,count(str:tokenize(@path,'\')))"/>
</xsl:otherwise>
</xsl:choose>
<xsl:text> </xsl:text>
Expand Down

0 comments on commit 59554fc

Please sign in to comment.