Jump to content
Sign in to follow this  

How do I concatenate address on one line?

Recommended Posts

I would like to show address in one line. How do I do this? My code is only showing this:

<nc:StreetFullText>607 Main St W</nc:StreetFullText>

I know I need to add 'City', 'State', 'Zip' to the end of my line of code so that the City, State and Zip is added but I do not know how to do it.


Desired output

<nc:StreetFullText>607 Main St W, New York, DC 77777</nc:StreetFullText>

My xml

<EnumerationValue code="DC042015J"><AssociatedValue type="Street1"><Text>607 Main St W</Text></AssociatedValue><AssociatedValue type="City"><Text>New York</Text></AssociatedValue><AssociatedValue type="State"><Text>MN</Text></AssociatedValue><AssociatedValue type="Zip"><Text>77777</Text></AssociatedValue></EnumerationValue><EnumerationValue code="DC046015J">

Xslt code

<nc:StreetFullText><xsl:variable name="vCourtORI"><xsl:value-of select="/Integration/Case/Court/CourtNCIC"/></xsl:variable><xsl:value-of select="document(concat($gEnvPath,'SchemasCourtXMLSimpleTypesCourtLocationTextType.xml'))/SimpleTypeCompanion/EnumerationValue[@code=$vCourtORI]/AssociatedValue[@type='Street1']/Text"/></nc:StreetFullText>

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...