Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8526

SQL call xpath reference failed

$
0
0

Hello All:

   So i have a for each break down and then a SQL Call after that. Parts of SQL call parameter (sysID, SQL statement) are inside the segment from the for each break down. And I thought I could just use the xpath to reference the value to say. For this SQL call this statement. for that SQL call that statement.

Unfortunately after trying everything I know for a while I have not figure out what's wrong with my xpath reference.

 

So atom11 is a copy all from for each. Just so I can see everything.

 

In SQL statement I tried to use

/vpf:Msg/vpf:Body/vpf:Payload[@id='atom11']/jdbc:Row/jdbc:RUNSP

/vpf:Msg/vpf:Body/vpf:Payload[@id='atom11']/jdbc:Row/RUNSP

/vpf:Msg/vpf:Body/vpf:Payload[@id='atom11']/jdbc:Row/RUNSP/text()

 

 

pretty much the same result.

 

But then I used another xslt document to try to map it

<xsl:template name="transform">

  <xsl:variable name="FILENAME" select="/vpf:Msg/vpf:Body/vpf:Payload[@id='atom11']/jdbc:Row/jdbc:FILENAME"/>

  <xsl:variable name="RUNSP" select="/vpf:Msg/vpf:Body/vpf:Payload[@id='atom11']/jdbc:Row/jdbc:RUNSP"/>

  <xsl:variable name="DELIMITOR" select="/vpf:Msg/vpf:Body/vpf:Payload[@id='atom11']/jdbc:Row/jdbc:DELIMITOR"/>

  <xsl:variable name="ReceiverID" select="/vpf:Msg/vpf:Body/vpf:Payload[@id='atom11']/jdbc:Row/jdbc:ReceiverID"/>

  <FILENAME xmlns =""> <xsl:value-of select="$FILENAME" /> </FILENAME>

  <RUNSP xmlns =""><xsl:value-of select="$RUNSP" /> </RUNSP>

  <DELIMITOR xmlns =""><xsl:value-of select="$DELIMITOR" /> </DELIMITOR>

  <RECEIVERID xmlns =""><xsl:value-of select="$ReceiverID" /> </RECEIVERID>

  </xsl:template>

 

And this process works. Which generate below atom14.

3-5-2014 1-19-12 PM.png

After that trying to reference against /vpf:Msg/vpf:Body/vpf:Payload[@id='atom14']/RUNSP

Still nothing! I am running out of ideas.

 

P.S. I also tried #$[atom14/RUNSP] doesn't work either! What am I missing here?


Viewing all articles
Browse latest Browse all 8526

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>