Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   Predicate by attribute? (http://www.velocityreviews.com/forums/t167355-predicate-by-attribute.html)

Jacques 06-24-2004 10:01 AM

Predicate by attribute?
 
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







Martin Honnen 06-24-2004 10:37 AM

Re: Predicate by attribute?
 


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 06-24-2004 11:45 AM

Re: Predicate by attribute?
 
Excelent!! Thank you


"Martin Honnen" <mahotrash@yahoo.de> wrote in message
news:40daaed4$1@olaf.komtel.net...
>
>
> 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/
>





All times are GMT. The time now is 10:14 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.