This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: How to test a given node ?




> In my XSLT, when I process the Element node, I want to check if the
> ElementType node (which has the same name attribute value as the Element
> name attribute) has a "Group" child.

<xsl:template match="Element">
  <xsl:if test="/Schema/ElementType[@name=current()/@name]/Group">
    yes



If your schema is in the schema namespace you'll need
/x:Schema/x:/ElementType
etc for a suitable declaration of x:

David

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]