Bug 719458 - xsl variable $pop_name contains underscores
xsl variable $pop_name contains underscores
Status: CLOSED NOTABUG
Product: Publican
Classification: Community
Component: publican (Show other bugs)
2.5
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Jeff Fearn
Ruediger Landmann
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2011-07-06 19:22 EDT by Ryan Lerch
Modified: 2011-07-06 23:00 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-07-06 23:00:50 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Ryan Lerch 2011-07-06 19:22:26 EDT
I am trying to use the following in a custom brand:
<xsl:value-of select="$pop_name"/>

to display the name of a document in a custom header. However, the value that is returned contains underscores ("_") instead of spaces.
Comment 1 Jeff Fearn 2011-07-06 23:00:50 EDT
This can be done in XSL:
- <xsl:value-of select="$pop_name"/>
+ <xsl:value-of select='translate($pop_name, "_", " ")'/>

Note You need to log in before you can comment on or make changes to this bug.