|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
WMB-IN XSL TRANSFORM NODE(XSL Issue)-Urgent |
« View previous topic :: View next topic » |
Author |
Message
|
chilivenkat |
Posted: Wed Apr 18, 2012 3:37 am Post subject: WMB-IN XSL TRANSFORM NODE(XSL Issue)-Urgent |
|
|
Newbie
Joined: 08 Apr 2012 Posts: 3
|
HI,
scenario:
I have a flow including soap input-->subflow-->MQJMSTransform-->compute node-->action codefilter-->XSL Transform
Input.xml is sent to soap input by using SOAP UI tool....when message comes to XSL Transform node, it uses XSL to map fields from front end to back end...
Query:
In that XSL, i need to map Shopid from input xml to xyzcode, abccode to some value which is included in Value.xml(separate xml which is saved in c:\ folder) as shown in code below
<xsl:variable name="OrgCode"><xsl:value-of select="document('C:\Documents and Settings\Administrator\Value.xml')/mm:Value/mm:Map[@name='shopIdToOrgCode']/mm:Entry[@key=$shopId]/text()" /></xsl:variable>
<xsl:attribute name="xyzCode"><xsl:value-of select="$OrgCode" /></xsl:attribute>
<xsl:attribute name="abcCode"><xsl:value-of select="$OrgCode" /></xsl:attribute>
How to import Value.xml into this XSL instead of using above path say:C:\Documents and Settings\Administrator\Value.xml.
Note: Value.xml is not the input xml, its a separate xml which i need to import in XSL.
Thanks in advance.
Last edited by chilivenkat on Thu Apr 19, 2012 4:09 am; edited 1 time in total |
|
Back to top |
|
 |
joebuckeye |
Posted: Wed Apr 18, 2012 5:45 am Post subject: |
|
|
 Partisan
Joined: 24 Aug 2007 Posts: 365 Location: Columbus, OH
|
Use relative paths.
Code: |
<xsl:value-of select="document('ValueMaps.xml')/mm:ValueMaps/mm:Map[@name='storeIdToOrganizationCode']/mm:Entry[@key=$storeId]/text()" />
|
Will work if ValueMaps.xml is located in the same directory as your XSL. |
|
Back to top |
|
 |
chilivenkat |
Posted: Wed Apr 18, 2012 11:04 pm Post subject: |
|
|
Newbie
Joined: 08 Apr 2012 Posts: 3
|
joebuckeye wrote: |
Use relative paths.
Code: |
<xsl:value-of select="document('Value.xml')/mm:Value/mm:Map[@name='shopIdToOrgCode']/mm:Entry[@key=$shopId]/text()" />
|
Will work if Value.xml is located in the same directory as your XSL. |
Thanks for reply....
want to know one thing. Value.xml should be in project workspace?? if so i tried by locating Value.xml in the project workspace where xsl is located.. after trying this following error throws as shown below:
//C:\Documents and Settings\All Users\Application Data\IBM\MQSI/XML/external/./xslt/custom/Value.xml
but, am unable to find this path in my system to resolve the error. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|