Skip to content

Commit

Permalink
aside als stijl geimplementeerd
Browse files Browse the repository at this point in the history
en topline toegevoegd (toon imvertor info)
  • Loading branch information
arjan authored and arjan committed Nov 22, 2024
1 parent 6fe564f commit f3dee67
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,9 @@ td {
tr:nth-child(even) {
background-color: white !important;
}

div.topline {
color: gray;
font-size: 80%;
border-bottom: 1px solid gray;
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ div.box_quote_href {
text-align: right;
color: gray;
}

div.box_inner_label {
color: gray;
font-style: italic;
Expand Down Expand Up @@ -164,6 +163,13 @@ span.letop {
color: orangered;
font-style: italic;
}
div.aside {
font-size: 80%;
color: gray;
}
span.aside {
color: gray;
}
div.more-info {
font-size: 90%;
font-style: italic;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,20 @@
</box>
</xsl:template>
<xsl:template match="span[@data-custom-style = 'letopchar']">
<span class="letop">
<xsl:apply-templates select="node()"/>
</span>
<span class="letop">
<xsl:apply-templates select="node()"/>
</span>
</xsl:template>

<xsl:template match="div[@data-custom-style = 'aside']">
<div class="aside">
<xsl:apply-templates select="node()"/>
</div>
</xsl:template>
<xsl:template match="span[@data-custom-style = 'asidechar']">
<span class="aside">
<xsl:apply-templates select="node()"/>
</span>
</xsl:template>

<xsl:template match="div[@data-custom-style = ('quote','citaat')]">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@
</xsl:choose>
</xsl:function>

<?x
<xsl:function name="local:get-prop" as="item()*">
<xsl:param name="key" as="xs:string*"/>
<xsl:sequence select="local:get-prop($key,false())"/>
Expand All @@ -351,6 +352,7 @@
<xsl:variable name="prop" select="imf:get-xparm('documentor/prop-' || local:compact($key))"/>
<xsl:sequence select="if ($get-all) then $prop else $prop[last()]"/>
</xsl:function>
x?>

<!--
Resolve errors and such.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@
</head>

<body>
<xsl:if test="imf:boolean(imf:get-xparm('documentor/prop-toonimvertorinfo'))">
<div class="topline">
<p>Path: {imf:get-xparm('appinfo/subpath')} at {imf:get-xparm('run/start')}, Imvertor: {imf:get-xparm('run/version')} at metamodel {imf:get-xparm('appinfo/metamodel-name-and-version')}, Module: {(imf:get-xparm('documentor/prop-module'),'default')[1]}</p>
</div>
</xsl:if>
<xsl:sequence select="imf:document(imf:get-xparm('properties/IMVERTOR_DOCUMENTOR_XHTMLTORESPEC_FILE'))/document/section"/>
</body>
</html>
Expand Down

0 comments on commit f3dee67

Please sign in to comment.