on 05-22-2013 3:42 PM
i am trying to map a field from one structure to another.
i have done this using the following:
<SASIncidentNumber>
<xsl:value-of select="string($par0/@extension)"/>
</SASIncidentNumber>
however there could be more than one @exstension in the XML.
i only want to map the first one, and in XSL2.0 i could use distinct-value command. however i cannot find anything similar in XSL1.0
also, i want to merge two fields within a node. again, in XSL2.0 i can use a string-join, however in cannot find it in XSL1.0.
the code i have for that is:
<xsl:for-each select="ns0:ClinicalDocument/ns0:components/ns0:structuredBody/ns0:component/ns0:section/ns0:component/ns0:section/ns0:text/ns0@content">
<ClinicalSummary xmlns="">
<xsl:value-of select="string(.)"/>
</ClinicalSummary>
</xsl:for-each>
can someone help please?
we have replaced the XSL with Java mapping
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In order to select the first occurrence you could use
<xsl:value-of select="string($par0[1]/@extension)"/>
To merge two string, use
<xsl:value-of select="concat(.., ..)"/>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.