Predicate by attribute?

Discussion in 'XML' started by Jacques, Jun 24, 2004.

  1. Jacques

    Jacques Guest

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

    <System xmlns="" name="SAP_R3_Financials_DEV200">
    <Attributes xmlns="">
    <pcd:Attribute name="ApplicationServer" value="secacsap"/>
    <pcd:Attribute name="ServerPort" value="3200"/>
    </Attributes>
    </System>
    ---------------------------------------------
    I want to be able to

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


    Regards
    Jacques, Jun 24, 2004
    #1
    1. Advertising

  2. Jacques wrote:

    > Is it possible to predicate by attribute, and if so, how?
    >
    > <System xmlns="" name="SAP_R3_Financials_DEV200">
    > <Attributes xmlns="">
    > <pcd:Attribute name="ApplicationServer" value="secacsap"/>
    > <pcd:Attribute name="ServerPort" value="3200"/>
    > </Attributes>
    > </System>
    > ---------------------------------------------
    > I want to be able to
    >
    > <xsl:value-of select="@value"/> only when @name="ApplicationServer"


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

    Martin Honnen
    http://JavaScript.FAQTs.com/
    Martin Honnen, Jun 24, 2004
    #2
    1. Advertising

  3. Jacques

    Jacques Guest

    Excelent!! Thank you


    "Martin Honnen" <> wrote in message
    news:40daaed4$...
    >
    >
    > Jacques wrote:
    >
    > > Is it possible to predicate by attribute, and if so, how?
    > >
    > > <System xmlns="" name="SAP_R3_Financials_DEV200">
    > > <Attributes xmlns="">
    > > <pcd:Attribute name="ApplicationServer" value="secacsap"/>
    > > <pcd:Attribute name="ServerPort" value="3200"/>
    > > </Attributes>
    > > </System>
    > > ---------------------------------------------
    > > I want to be able to
    > >
    > > <xsl:value-of select="@value"/> only when @name="ApplicationServer"

    >
    > <xsl:if test="@name = 'ApplicationServer'">
    > <xsl:value-of select="@value" />
    > </xsl:if>
    > --
    >
    > Martin Honnen
    > http://JavaScript.FAQTs.com/
    >
    Jacques, Jun 24, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. awebguynow
    Replies:
    1
    Views:
    349
    George Bina
    Jan 27, 2006
  2. Sabba
    Replies:
    0
    Views:
    618
    Sabba
    May 9, 2006
  3. mikets
    Replies:
    18
    Views:
    1,148
    Chris \( Val \)
    Jan 7, 2004
  4. William Payne

    std::stable_sort with predicate woes

    William Payne, Apr 21, 2004, in forum: C++
    Replies:
    8
    Views:
    1,609
    tom_usenet
    Apr 21, 2004
  5. marco_segurini
    Replies:
    0
    Views:
    1,664
    marco_segurini
    May 28, 2004
Loading...

Share This Page