Skip to content

Commit 2d0af97

Browse files
goneallxsuchy
authored andcommitted
Add attributes to altParagraphType in Schema
Signed-off-by: Gary O'Neall <[email protected]>
1 parent 06cdd3c commit 2d0af97

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

schema/ListedLicense.xsd

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,33 @@
237237
</documentation>
238238
</annotation>
239239
</group>
240+
<attribute name="name" type="string" use="required">
241+
<annotation>
242+
<documentation xml:lang="en">
243+
<xhtml:p>
244+
<xhtml:code>name</xhtml:code> is a unique (within the license/exception) name for this <xhtml:code>altType</xhtml:code> element.
245+
</xhtml:p>
246+
</documentation>
247+
</annotation>
248+
</attribute>
249+
<attribute name="match" type="string" use="required">
250+
<annotation>
251+
<documentation xml:lang="en">
252+
<xhtml:p>
253+
<xhtml:code>match</xhtml:code> is the <xhtml:a href="http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_04">POSIX extended regular expression (ERE)</xhtml:a> defining allowed matches. Where possible, alternates are listed in order of decreasing numbers of matched characters, which allows for regular expression engines using both POSIX's <xhtml:a href="http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_01_02">longest-match</xhtml:a> semantics and those which prefer the leftmost branch (e.g. <xhtml:a href="https://golang.org/pkg/regexp/#Compile">Go</xhtml:a>, <xhtml:a href="https://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#sec-alternative.cE">JavaScript</xhtml:a>, <xhtml:a href="http://perldoc.perl.org/perlre.html#Combining-RE-Pieces">Perl</xhtml:a>, <xhtml:a href="https://docs.python.org/3.5/library/re.html#regular-expression-syntax">Python</xhtml:a>, etc.)
254+
</xhtml:p>
255+
</documentation>
256+
</annotation>
257+
</attribute>
258+
<attribute name="spacing" type="string" default="before">
259+
<annotation>
260+
<documentation xml:lang="en">
261+
<xhtml:p>
262+
<xhtml:code>spacing</xhtml:code> defines how spacing is handled around the alt text. Since XML does not preserve white space, to render the text from the license XML we need to provide hints to the tools that translate the XML to text (or other formats). Valid values are <xhtml:code>none</xhtml:code> for no spaces before or after the alt text; <xhtml:code>before</xhtml:code> (default) for a space before, but not after the alt text; <xhtml:code>after</xhtml:code> for a space after, but not before the alt text; <xhtml:code>both</xhtml:code>a space before and after the alt text.
263+
</xhtml:p>
264+
</documentation>
265+
</annotation>
266+
</attribute>
240267
</complexType>
241268
<complexType name="altType" mixed="true">
242269
<annotation>

0 commit comments

Comments
 (0)