Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions regressiontest/run-regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ def test_auxiliaryurl_and_test():
execute("make Regress.html")

assert_in_file("Regress.html",
'See (<a href="https://www.ivoa.net/documents/Regress/20230201/'
'our-instance.xml">https://www.ivoa.net/documents/Regress/'
'See (<a href="https://www.ivoa.net/documents/Notes/Regress/20230201/'
'our-instance.xml">https://www.ivoa.net/documents/Notes/Regress/'
'20230201/our-instance.xml</a>) for')

edit_file("Makefile", [
Expand Down
15 changes: 12 additions & 3 deletions schemadoc.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ Copyright 2015, The GAVO project

<xsl:template match="xs:simpleType" mode="content"/>

<xsl:template match="xs:attributeGroup[@ref]">
<xsl:variable name="group-name" select="substring-after(@ref, ':')"/>
<xsl:apply-templates select="//xs:attributeGroup[@name=$group-name]//xs:attribute"
mode="attributes"/>
</xsl:template>

<xsl:template match="xs:complexType|xs:simpleType" mode="attributes">
<xsl:if test=".//xs:attribute">
<xsl:attribute namespace="" name="title">
Expand Down Expand Up @@ -269,7 +275,8 @@ Copyright 2015, The GAVO project
</xsl:when>
<xsl:otherwise>
<xsl:if test="descendant::xs:enumeration">
<xsl:text>\item[Allowed Values]\hfil&#10;\begin{longtermsdescription}</xsl:text>
<xsl:text>\item[Allowed Values\vrule width 0pt depth 5pt]\hfil
\begin{longtermsdescription}</xsl:text>
<xsl:apply-templates
select="descendant::xs:enumeration"
mode="controlledVocab"/>
Expand Down Expand Up @@ -633,8 +640,9 @@ Copyright 2015, The GAVO project
<xsl:text>\end{lstlisting}</xsl:text>
</xsl:template>


<xsl:template match="xs:documentation" mode="typedesc">
<xsl:text>\noindent{\small</xsl:text>
<xsl:text>\noindent{\small{}</xsl:text>
<xsl:call-template name="escape-for-TeX">
<xsl:with-param name="tx" select="."/>
</xsl:call-template>
Expand Down Expand Up @@ -675,11 +683,12 @@ Copyright 2015, The GAVO project
<xsl:text> Type Schema Definition}&#10;&#10;</xsl:text>
<xsl:apply-templates select="." mode="xsddef"/>

<xsl:if test=".//xs:attribute">
<xsl:if test=".//xs:attribute or .//xs:attributeGroup[@ref]">
<xsl:text>&#10;&#10;\vspace{0.5ex}\noindent\textbf{</xsl:text>
<xsl:apply-templates select="." mode="attributeTitle"/>
<xsl:text>}&#10;&#10;\begingroup\small\begin{bigdescription}</xsl:text>
<xsl:apply-templates select="." mode="attributes"/>
<xsl:apply-templates select=".//xs:attributeGroup[@ref]"/>
<xsl:text>&#10;\end{bigdescription}\endgroup&#10;&#10;</xsl:text>
</xsl:if>

Expand Down
2 changes: 1 addition & 1 deletion update_generated.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def escape_for_TeX(tx):
).replace("_", "\\_"
).replace("}", "\\}"
).replace("{", "\\{"
).replace('"', '{"}')
).replace('"', '{"}').strip()

# long URLs in documentation strings are a pain because TeX
# will not break them. Let's see if things break badly if we
Expand Down