Connecting Tech Pros Worldwide Help | Site Map

XSL not matching

Newbie
 
Join Date: Apr 2009
Location: Dallas/Fort Worth Texas
Posts: 8
#1: Apr 22 '09
Hi All,

Here is my xml:

Expand|Select|Wrap|Line Numbers
  1. <script>
  2.   <actions>
  3.       <actions> 
  4.          <step type="Navigate">
  5.              <query>
  6.     <parameter name="Name">
  7.         <variable type="Static">
  8.             <![CDATA[site]]>
  9.         </variable>
  10.     </parameter>
  11.     <parameter name="Value">
  12.         <variable type="Static">
  13.             <![CDATA[joe]]>
  14.         </variable>
  15.     </parameter>
  16.             </query>
  17.          </step>
  18.        </actions>
  19.     <action>
  20. <script>
  21.  
Here is my xslt and I need to pull the value of "joe" but it will be dynamic every time.

Expand|Select|Wrap|Line Numbers
  1. <xsl:value-of select="//app:step[@type = 'Navigate']/app:query[app:parameter[@name = 'Name'] = 'site']/app:parameter[@name = 'Value']" />
  2.  
I cannot get it to match on this.

Thanks in advance,

Todd
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,629
#2: Apr 23 '09

re: XSL not matching


you did define the namespace in both files?
Newbie
 
Join Date: Apr 2009
Location: Dallas/Fort Worth Texas
Posts: 8
#3: Apr 23 '09

re: XSL not matching


I believe I have them correct:

XML file:

xmlns="http://www.keynote.com/namespaces/tstp/script"

XSL file:

xmlns:app="http://www.keynote.com/namespaces/tstp/script"

Thanks in advance,

Todd
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,629
#4: Apr 23 '09

re: XSL not matching


Expand|Select|Wrap|Line Numbers
  1. <xsl:value-of select="//app:step[@type = 'Navigate']/app:query[app:parameter[@name = 'Name']/app:variable/text() = 'site']/app:parameter[@name = 'Value']" />
Newbie
 
Join Date: Apr 2009
Location: Dallas/Fort Worth Texas
Posts: 8
#5: Apr 24 '09

re: XSL not matching


Vielen Dank!

Mit Freundlichen Grüßen,

Todd
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,629
#6: Apr 26 '09

re: XSL not matching


I'm flattered by such kindness.

all the best, Dormilich
Reply