Skip to content

Commit

Permalink
links and inline code blocks in LDF; scripts adaptation
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@656 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed Jun 15, 2009
1 parent c9f7260 commit 006a690
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 6 deletions.
36 changes: 33 additions & 3 deletions shared/xsd/ldf.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@
<xsd:attribute name="id" type="xsd:ID" use="optional"/>
</xsd:complexType>

<xsd:complexType name="listOfInternalLinks">
<!--<xsd:complexType name="listOfInternalLinks">
<xsd:sequence>
<xsd:element name="link" maxOccurs="unbounded">
<xsd:complexType>
Expand All @@ -476,7 +476,7 @@
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:complexType>-->

<xsd:complexType name="tableRow">
<xsd:sequence>
Expand Down Expand Up @@ -532,7 +532,7 @@
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="references" type="ldf:listOfInternalLinks">
<xsd:element name="references" type="ldf:simpleList">
<xsd:annotation>
<xsd:documentation>
Hardbound standards have been trying to be more hypertext
Expand Down Expand Up @@ -839,4 +839,34 @@
</xsd:annotation>
</xsd:element>

<xsd:element name="code" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
Inlined pieces of code are usually printed in typewriter-like font.
They are frequently incomplete, mostly nothing more than simple literals,
and can only be checked to be correct tokens of the language in
a lexical sense.
</xsd:documentation>
</xsd:annotation>
</xsd:element>

<xsd:element name="link">
<xsd:annotation>
<xsd:documentation>
Internal links are pairs of text that will become clickable in hypertext
presentation forms or precede the reference itself when this is the only
option. The reference points to a section or a subsection of the same
document that the link should refer to. If the explicit text is omitted,
its default value is the name of the section being referenced.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<!--<xsd:element name="text" type="xsd:string"/>-->
<xsd:element name="text" type="xsd:string" minOccurs="0"/>
<xsd:element name="reference" type="xsd:IDREF"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>

</xsd:schema>
4 changes: 2 additions & 2 deletions topics/languedoc/ldf/prepare.xbgf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</bgf:expression>
</bgf:production>
</xbgf:designate>
<xbgf:unfold>
<!-- <xbgf:unfold>
<nonterminal>listOfInternalLinks</nonterminal>
</xbgf:unfold>
<xbgf:extract>
Expand Down Expand Up @@ -106,7 +106,7 @@
</plus>
</bgf:expression>
</bgf:production>
</xbgf:anonymize>
</xbgf:anonymize>-->


</xbgf:sequence>
10 changes: 9 additions & 1 deletion topics/languedoc/ldf/xldf/reorganise.xldf
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,16 @@
<from>
<title>keyword</title>
</from>
<to>Keywords and plain text</to>
<to>Keywords, links and plain text</to>
</xldf:retitle>
<xldf:combine>
<section>element-code</section>
<with>element-keyword</with>
</xldf:combine>
<xldf:combine>
<section>element-link</section>
<with>element-keyword</with>
</xldf:combine>
<xldf:combine>
<section>complexType-mixedType</section>
<with>element-keyword</with>
Expand Down
6 changes: 6 additions & 0 deletions topics/languedoc/xldf/xldf/dropLdf.xldf
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,11 @@
<xldf:drop>
<section>element-keyword</section>
</xldf:drop>
<xldf:drop>
<section>element-link</section>
</xldf:drop>
<xldf:drop>
<section>element-code</section>
</xldf:drop>

</xldf:evolution-sequence>
6 changes: 6 additions & 0 deletions topics/languedoc/xldf/xldf/renameStr.xldf
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,10 @@
</xbgf:replace>
</xldf:transform-grammar>


<xldf:combine>
<section>simpleType-sectionRole</section>
<with>element-change-role</with>
</xldf:combine>

</xldf:evolution-sequence>

0 comments on commit 006a690

Please sign in to comment.