on 08-04-2008 11:21 AM
Hi All,
Kindly guide me to do a XSLT mapping for fixed values (done in graphical mapping)
eg: if Band Role
A JSE
B SE
and so on.
Kindly help me out to implement the above logic using xslt.
Thanks
Deepika
Hi,
You can create a java class with key value pair and can invoke the same from xslt mapping. This will be fast and will solve your purpose. A Sample code is given below
<xsl:template name="currentTime" xmlns:vector="java:java.util.Vector">
<xsl:variable name="list" select="vector:new()" />
The Size is <xsl:value-of select="vector:size($list)"/>
</xsl:template>
Thanks
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can do that with a SAPXML function, for example:
<sapxsl:function name="xxx:convert">
<sapxsl:argument name="string"/>
<sapxsl:result define="sapxsl:if($string='A;','JSE;',sapxsl:if($string='B;','SE;',$string))"/>
</sapxsl:function>
So you have your mapping information separate from the rest of the XSLT, which is not getting so complex then.
Best wishes,
Jan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,,
you can only do this with
a) xsl:if
b) xsl:choose
Regards Mario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.