I am pretty new to all of developing / using XSLT but for work we have to use this now. I am busy mapping messages from application A to B and i run into something I cannot find the answer to.
as input field i have <sys_external_id>201000077_G001_S20_H10</sys_external_id>
now have i created below:
<stopNumber>
<xsl:value-of select="substring(sys_external_id, 16, 4)" />
</stopNumber>
<stopHandlingNumber>
<xsl:value-of select="substring(sys_external_id, 20, 4)" />
</stopHandlingNumber>
this gives me at the moment the correct answer ( S20 and H10 ) now is the "problem" that the value of S20 and H10 can differ. for example the value can be S2100 or H110. also the G001 can also differ.
A substring-after does not work because i cannot determine where my end is ( as far as I know )