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

Remove the URI prefixs when it's an external report #152

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

rliu-parasoft
Copy link
Collaborator

No description provided.

@@ -42,6 +76,13 @@
<xsl:element name="packages">
<!-- Group by the parent path of uri-->
<xsl:for-each-group select="/Coverage/Locations/Loc" group-by="substring-before(@uri, tokenize(@uri, '/')[last()])">
<xsl:variable name="rawUri" select="@uri"/>
Copy link
Collaborator

@rwang-parasoft rwang-parasoft Oct 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. We can add a variable named uriWithoutFilePrefix.
<xsl:variable name="uriWithoutFilePrefix">
     <xsl:call-template name="getuUriWithoutFilePrefix">
        <xsl:with-param name="uri" select="$rawUri"/>
    </xsl:call-template>
</xsl:variable>
  1. Add a templat named getUriWithoutFilePrefix, and process uri in this template.
  2. Use uriWithFileInitialize where previously used uri

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants