Predicate by attribute?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jacques

    Predicate by attribute?

    Is it possible to predicate by attribute, and if so, how?

    <System xmlns="" name="SAP_R3_Fi nancials_DEV200 ">
    <Attributes xmlns="">
    <pcd:Attribut e name="Applicati onServer" value="secacsap "/>
    <pcd:Attribut e name="ServerPor t" value="3200"/>
    </Attributes>
    </System>
    ---------------------------------------------
    I want to be able to

    <xsl:value-of select="@value"/> only when @name="Applicat ionServer"


    Regards






  • Martin Honnen

    #2
    Re: Predicate by attribute?



    Jacques wrote:
    [color=blue]
    > Is it possible to predicate by attribute, and if so, how?
    >
    > <System xmlns="" name="SAP_R3_Fi nancials_DEV200 ">
    > <Attributes xmlns="">
    > <pcd:Attribut e name="Applicati onServer" value="secacsap "/>
    > <pcd:Attribut e name="ServerPor t" value="3200"/>
    > </Attributes>
    > </System>
    > ---------------------------------------------
    > I want to be able to
    >
    > <xsl:value-of select="@value"/> only when @name="Applicat ionServer"[/color]

    <xsl:if test="@name = 'ApplicationSer ver'">
    <xsl:value-of select="@value" />
    </xsl:if>
    --

    Martin Honnen


    Comment

    • Jacques

      #3
      Re: Predicate by attribute?

      Excelent!! Thank you


      "Martin Honnen" <mahotrash@yaho o.de> wrote in message
      news:40daaed4$1 @olaf.komtel.ne t...[color=blue]
      >
      >
      > Jacques wrote:
      >[color=green]
      > > Is it possible to predicate by attribute, and if so, how?
      > >
      > > <System xmlns="" name="SAP_R3_Fi nancials_DEV200 ">
      > > <Attributes xmlns="">
      > > <pcd:Attribut e name="Applicati onServer" value="secacsap "/>
      > > <pcd:Attribut e name="ServerPor t" value="3200"/>
      > > </Attributes>
      > > </System>
      > > ---------------------------------------------
      > > I want to be able to
      > >
      > > <xsl:value-of select="@value"/> only when @name="Applicat ionServer"[/color]
      >
      > <xsl:if test="@name = 'ApplicationSer ver'">
      > <xsl:value-of select="@value" />
      > </xsl:if>
      > --
      >
      > Martin Honnen
      > http://JavaScript.FAQTs.com/
      >[/color]


      Comment

      Working...