Skip to content

Commit

Permalink
Geonovum: mogelijkheid geïntroduceerd voor platte TTL tekst
Browse files Browse the repository at this point in the history
Let op, deze functie is nog uitgeschakeld. Wacht op okay.
Zie #566

Minor.
  • Loading branch information
arjan authored and arjan committed Dec 10, 2024
1 parent 1fc4937 commit 314a230
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/main/resources/xsl/MIMCompiler/v2/MIM1.2/MIMCompiler-RDF.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@

<xsl:variable name="urn-prefix" as="xs:string">uuid:</xsl:variable>

<xsl:variable name="rdf-retain-xhtml" select="true()"/><!-- TODO instelbaar -->

<xsl:variable name="output-parameters" xmlns:output="http://www.w3.org/2010/xslt-xquery-serialization" as="element(output:serialization-parameters)">
<output:serialization-parameters>
<output:indent value="no"/>
Expand Down Expand Up @@ -195,10 +197,17 @@ Zie: https://docs.geostandaarden.nl/mim/mim/ voor de laatste versie van de stand
</xsl:template>

<xsl:template match="(mim-in:definitie|mim-in:toelichting)[.//text()[normalize-space()]]" mode="metagegeven">
<xsl:variable name="html">
<xsl:apply-templates mode="xhtml"/>
</xsl:variable>
<xsl:element name="mim:{local-name()}">{serialize($html, $output-parameters)}</xsl:element>
<xsl:choose>
<xsl:when test="$rdf-retain-xhtml">
<xsl:variable name="html">
<xsl:apply-templates mode="xhtml"/>
</xsl:variable>
<xsl:element name="mim:{local-name()}">{serialize($html, $output-parameters)}</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:element name="mim:{local-name()}">{.}</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template match="xhtml:*" mode="xhtml" priority="10">
Expand Down

0 comments on commit 314a230

Please sign in to comment.