xsl-list
[Top] [All Lists]

Re: attribute test

2005-09-15 11:46:03
Perfect, Thanks a lot Joris

On 9/15/05, Joris Gillis <roac(_at_)pandora(_dot_)be> wrote:
Tempore 20:28:26, die 09/15/2005 AD, hinc in 
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com scripsit Spencer Tickner 
<spencertickner(_at_)gmail(_dot_)com>:

This should be a relatively simple solution but my mind ain't quite
working right today and google isn't being good to me.

I'm looking to test if any elements of a certain type do NOT have an
attribute with a specific value in an entire xml doc. For instance.

<!-- Pseudo xsl -->
<xsl:template match="/">
<xsl:if test="<!-- if all the foo elements in the doc only contain the
attribute att with a value of hi, don't output -->">
  <xsl:apply-templates/>
</xsl:if>
</xsl:template>

"not(/Root/foo/@att!='hi')"

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>