Overview #

Shows a DirXML Example and XPATH Example for working with DirXML Associations.

Taken from http://www.novell.com/communities/node/5845/using-xpath-examine-association-valuesContent unavailable! (broken link)https://ldapwiki.com/wiki/images/out.png

<nds dtdversion="3.5" ndsversion="8.x">
  <source>
    <product version="3.5.11.20080307 ">DirXML</product>
    <contact>Novell, Inc.</contact>
  </source>
  <output>
    <instance class-name="User" qualified-src-dn="O=LAB\OU=EMPLOYEES\OU=NEW\CN=JSmith" src-dn="\ACME-LAB\LAB\EMPLOYEES\NEW\LJohnson1" src-entry-id="56795">
      <attr attr-name="DirXML-Associations">
        <value timestamp="1217007039#71" type="structured">
          <component name="nameSpace">1</component>
          <component name="volume">\ACME-LAB\LAB\SERVICES\IDVAULT\APP-JDBC</component>
          <component name="path">PK_SEQUENCE=350110,table=CLIENTS,schema=IDM</component>
        </value>
        <value timestamp="1217007039#72" type="structured">
          <component name="nameSpace">1</component>
          <component name="volume">\ACME-LAB\LAB\SERVICES\IDVAULT\LinuxUnixSettings</component>
          <component name="path">YE98+yxf3AGAleAAAwAAAA==</component>
        </value>
        <value timestamp="1217007039#73" type="structured">
          <component name="nameSpace">1</component>
          <component name="volume">\ACME-LAB\LAB\SERVICES\IDVAULT\UserApplication35</component>
          <component name="path">"AnAssociation"</component>
        </value>
        <value timestamp="1217007039#74" type="structured">
          <component name="nameSpace">1</component>
          <component name="volume">\ACME-LAB\LAB\SERVICES\IDVAULT\Active Directory</component>
          <component name="path">f0648eab27d6da4283246583112d6319</component>
        </value>
        <value timestamp="1217007039#75" type="structured">
          <component name="nameSpace">1</component>
          <component name="volume">\ACME-LAB\LAB\SERVICES\IDVAULT\Corporate Password Sync</component>
          <component name="path">E101738</component>
        </value>
      </attr>
      </instance>
      </output>
      </nds>
The XPATH for this would be:

TARGET-DRIVER-DN#

<if-xpath op="true">$ASSOC-QUERY/attr[@attr-name="DirXML-Associations"]/value/component[@name='volume']/text()=$TARGET-DRIVER-DN</if-xpath>

More Information#

There might be more information for this subject on one of the following: