Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

XPATH $destQueryProcessor question

91 views
Skip to first unread message

Birty

unread,
Jan 29, 2007, 7:04:00 AM1/29/07
to
Hi

Not sure if this is possible, hopefully someone can help.

I'm working on a DT driver that receives a User CN and a Group CN per
record. It searches for the user and if they exist it adds them to the
Group. All works OK. In the Command Transform I convert the Group name
to a DN by using the following XPATH statement within a rule:

reformat operation attribute("Group
Membership",XPATH("query:search($destQueryProcessor,"subtree","","\ICON
\USERS","Group","CN",$current-value,"")/@src-dn"))

This in effect searches for the specified group and replaces it with
the DN of the group (if it exists!)

My question... to make this driver portable I would like to be able to
replace the \ICON\USERS context, representing the DestDN in the query,
with a value stored in the Global Variable list of the driver. So if I
declare a global variable, say GV_SeachDN and assign \ICON\USERS, my
XPATH query uses this value for DestDN

Is this possible and if so what would the correct calling syntax be?

Tnx in advance

Birty

unread,
Jan 29, 2007, 7:37:35 AM1/29/07
to

A bit more searching came up with the answer "~Global Variable Name~"
Walz Sing Ma Tilda then :-)

0 new messages