Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/refactoring release fixes #98

Merged
merged 2 commits into from
Apr 29, 2022
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
2 changes: 1 addition & 1 deletion config/ePO-default/config-parameters.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

<!-- types of elements and names for attribute types that are acceptable to produce object properties -->
<xsl:variable name="acceptableTypesForObjectProperties"
select="('epo:Quantity', 'epo:Measure', 'epo:Identifier', 'epo:Amount')"/>
select="('epo:Identifier', 'rdfs:Literal')"/>
<!-- the type of attributes which takes values from a controlled list-->
<xsl:variable name="controlledListType" select="'epo:Code'"/>
<!-- Acceptable stereotypes -->
Expand Down
3 changes: 2 additions & 1 deletion src/common/utils.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@
<xsl:param name="isDefaultNamespaceContextualised" as="xs:boolean"/>

<xsl:variable name="localName" select="f:getLocalSegmentForElements($attribute)"/>
<xsl:variable name="prefix" select="fn:substring-before($attribute/@name, ':')"/>
<xsl:variable name="expandedLocalName"
select="
if (substring($localName, 1, 1) = fn:upper-case(substring($localName, 1, 1))) then
Expand All @@ -268,7 +269,7 @@
$localName
"/>
<xsl:sequence
select="f:buildURIFromNode($attribute, $expandedLocalName, $isPascalCase, $isDefaultNamespaceContextualised)"
select="f:buildURIFromNode($attribute, fn:concat($prefix,':',$expandedLocalName), $isPascalCase, $isDefaultNamespaceContextualised)"
/>
</xsl:function>

Expand Down