'How do I do string separation in xslt
<xsl:when test="$patientRole/n1:id/@assigningAuthorityName">
<xsl:value-of select="$patientRole/n1:id/@assigningAuthorityName" />
</xsl:when>
I get this Intergy Patient Number Intergy Patient ID SSN like a text.
How can I separate that to look like:
Intergy patient Number
intergy patient ID
SSN
Solution 1:[1]
I am guessing you want to do something like:
<xsl:value-of select="$patientRole/n1:id/@assigningAuthorityName" separator=" "/>
But this assumes that the spaces are there because the expression selects multiple nodes, not because they are in the original XML value/s. And it also assumes you want a textual output, not HTML or something that requires a different line break.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | michael.hor257k |
