XSL not matching

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tgow
    New Member
    • Apr 2009
    • 8

    XSL not matching

    Hi All,

    Here is my xml:

    Code:
    <script>
      <actions>
          <actions> 
             <step type="Navigate">
                 <query>
    	<parameter name="Name">
    		<variable type="Static">
    			<![CDATA[site]]>
    		</variable>
    	</parameter>
    	<parameter name="Value">
    		<variable type="Static">
    			<![CDATA[joe]]>
    		</variable>
    	</parameter>
                </query>
             </step>
           </actions>
        <action>
    <script>
    Here is my xslt and I need to pull the value of "joe" but it will be dynamic every time.

    Code:
    <xsl:value-of select="//app:step[@type = 'Navigate']/app:query[app:parameter[@name = 'Name'] = 'site']/app:parameter[@name = 'Value']" />
    I cannot get it to match on this.

    Thanks in advance,

    Todd
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    you did define the namespace in both files?

    Comment

    • tgow
      New Member
      • Apr 2009
      • 8

      #3
      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

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        Code:
        <xsl:value-of select="//app:step[@type = 'Navigate']/app:query[app:parameter[[U]@name = 'Name']/app:variable/text() = 'site'[/U]]/app:parameter[@name = 'Value']" />

        Comment

        • tgow
          New Member
          • Apr 2009
          • 8

          #5
          Vielen Dank!

          Mit Freundlichen Grüßen,

          Todd

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            I'm flattered by such kindness.

            all the best, Dormilich

            Comment

            Working...