Skip to content

Commit

Permalink
Change to comply with structure-1 schema
Browse files Browse the repository at this point in the history
  • Loading branch information
RikardLarsson-BEAst committed Dec 9, 2024
1 parent cb62da5 commit 77c7388
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions tools/UBLInstance-To-StructureXML.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -459,20 +459,6 @@
</xsl:if>
</xsl:for-each>
</xsl:when-->
<xsl:when test="$varElementTextNodeValue != ''">
<Value type="EXAMPLE">
<xsl:value-of select="fn:normalize-space($varElementTextNodeValue)"/>
</Value>
</xsl:when>
<xsl:when test="$varUblElement/nsPep:Element/nsPep:Value[@type = 'EXAMPLE'] != ''">
<Value type="EXAMPLE">
<xsl:value-of select="$varUblElement/nsPep:Element/nsPep:Value[@type = 'EXAMPLE']"/>
</Value>
</xsl:when>
</xsl:choose>
<xsl:for-each select="@*">
<xsl:variable name="varAttrName" select="fn:name(.)"/>
<xsl:variable name="varUblElementAttribute" select="$varUblElement/nsPep:Element/nsPep:Attribute[nsPep:Term = $varAttrName]"/>
<!--xsl:message>
<xsl:value-of select="concat($varElementName, ': ', $varAttrName)"/>: <xsl:value-of select="."/>
</xsl:message-->
Expand Down Expand Up @@ -623,6 +609,21 @@
</xsl:when>
</xsl:choose>
</Attribute>
<xsl:when test="$varElementTextNodeValue != ''">
<Value type="EXAMPLE">
<xsl:value-of select="fn:normalize-space($varElementTextNodeValue)"/>
</Value>
</xsl:when>
<xsl:when test="$varUblElement/nsPep:Element/nsPep:Value[@type = 'EXAMPLE'] != ''">
<Value type="EXAMPLE">
<xsl:value-of select="$varUblElement/nsPep:Element/nsPep:Value[@type = 'EXAMPLE']"/>
</Value>
</xsl:when>
</xsl:choose>
<xsl:for-each select="@*">
<xsl:variable name="varAttrName" select="fn:name(.)"/>
<xsl:variable name="varUblElementAttribute" select="$varUblElement/nsPep:Element/nsPep:Attribute[nsPep:Term = $varAttrName]"/>

</xsl:for-each>
<xsl:apply-templates select="*" mode="therest"/>
</Element>
Expand Down

0 comments on commit 77c7388

Please sign in to comment.