I have a style sheet that kicks in and basicly shuts down the
transaction, I do not see anything that veto's it. I would assume that
move to the next policy set down but it looks like it shuts everything
down. I am trying to understand why but I am at a loss. I have
included the style sheet and what you see in the trace for the drvier.
I guess I am missing an understanding with style sheets, any help with
this or ideas would be great.

TRACE

[01/04/12 12:35:57.643]riverAD ST:Start transaction.
[01/04/12 12:35:57.644]riverAD ST:Processing events for transaction.
[01/04/12 12:35:57.645]riverAD ST:
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.0.1.1">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<modify cached-time="20120104173557.551Z" class-name="User"
event-id="computer#20120104173557#5#1:ee7880fd-4c3c-4960-d690-fd8078ee3c4c"
qualified-src-dn="O=COMPANY\OU=Vault\OU=Internal\OU=Users\CN=XUs er"
src-dn="\Stage-Tree\COMPANY\Vault\Internal\Users\XUser"
src-entry-id="59614" timestamp="1325698557#2">
<association
state="associated">67fa59adac287a49891206a3f3b6be8 8</association>
<modify-attr attr-name="COMPANYVPOP">
<remove-value>
<value timestamp="1325698081#1" type="string">4321</value>
</remove-value>
<add-value>
<value timestamp="1325698557#2" type="string">5498</value>
</add-value>
</modify-attr>
</modify>
</input>
</nds>
[01/04/12 12:35:57.659]riverAD ST:Applying event transformation
policies.
[01/04/12 12:35:57.659]riverAD ST:Applying XSLT policy:
%+C%14CQuery+JATA+Entitlements+-+SS%-C.
[01/04/12 12:35:57.660]riverAD ST: Query from policy
[01/04/12 12:35:57.660]riverAD ST:
<nds dtdversion="4.0" ndsversion="8.x">
<input>
<query dest-dn="\Stage-Tree\COMPANY\Vault\Internal\Users\XUser"
scope="entry"
xmlns:jstrBuf="http://www.novell.com/nxsl/java/java.lang.StringBuffer">
<read-attr attr-name="DirXML-EntitlementRef"/>
</query>
</input>
</nds>
[01/04/12 12:35:57.660]riverAD ST: Pumping XDS to eDirectory.
[01/04/12 12:35:57.660]riverAD ST: Performing operation query for
\Stage-Tree\COMPANY\Vault\Internal\Users\XUser.
[01/04/12 12:35:57.660]riverAD ST: --JCLNT--
\Stage-Tree\COMPANY\Services\IDM\COMPANYDriverSet\PKI - AD : Duplicating
: context = 683737276, tempContext = 683737272
[01/04/12 12:35:57.662]riverAD ST: --JCLNT--
\Stage-Tree\COMPANY\Services\IDM\COMPANYDriverSet\PKI - AD : Calling
free on tempContext = 683737272
[01/04/12 12:35:57.662]riverAD ST: Query from policy result
[01/04/12 12:35:57.663]riverAD ST:
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.0.1.1">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<instance class-name="User"
qualified-src-dn="O=COMPANY\OU=Vault\OU=Internal\OU=Users\CN=XUs er"
src-dn="\Stage-Tree\COMPANY\Vault\Internal\Users\XUser"
src-entry-id="59614">
<association
state="associated">67fa59adac287a49891206a3f3b6be8 8</association>
<attr attr-name="DirXML-EntitlementRef">
<value timestamp="1250713498#63" type="structured">
<component name="nameSpace">1</component>
<component
name="volume">\Stage-Tree\COMPANY\Services\IDM\COMPANYDriverSet\NorthGr umAD\Account</component>
<component name="path.xml">
<ref>
<src>Driver</src>
<id>NORTHGRUM AD DRIVER Standard Account</id>
<param>NORTHGRUM</param>
</ref>
</component>
</value>
<value timestamp="1295441647#1" type="structured">
<component name="nameSpace">1</component>
<component
name="volume">\Stage-Tree\COMPANY\Services\IDM\COMPANYDriverSet\User
Processor\specialAccount</component>
<component name="path.xml">
<ref>
<src>AF</src>

<id>593461831266423097a6e4faed26f199:ad63344eb0e74 cb79f5cf7f5ed8734dd</id>
<param>NORTHGRUM</param>
</ref>
</component>
</value>
</attr>
</instance>
<status level="success"></status>
</output>
</nds>
[01/04/12 12:35:57.664]riverAD ST: %13Cxsl:message -> No JABadge
Entitlement
[01/04/12 12:35:57.664]riverAD ST: %13Cxsl:message -> No JABadge
Entitlement
[01/04/12 12:35:57.665]riverAD ST: %13Cxsl:message -> string buffer
is: false
[01/04/12 12:35:57.665]riverAD ST: %13Cxsl:message -> No TABadge
Entitlement
[01/04/12 12:35:57.665]riverAD ST: %13Cxsl:message -> No TABadge
Entitlement
[01/04/12 12:35:57.665]riverAD ST: %13Cxsl:message -> string buffer
is: false
[01/04/12 12:35:57.665]riverAD ST:Policy returned:
[01/04/12 12:35:57.665]riverAD ST:
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.0.1.1">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input/>
</nds>
[01/04/12 12:35:57.666]riverAD ST:Applying policy: %+C%14Crequired
attributes%-C.
[01/04/12 12:35:57.666]riverAD ST:Policy returned:
[01/04/12 12:35:57.666]riverAD ST:
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.0.1.1">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input/>
</nds>
[01/04/12 12:35:57.666]riverAD ST:Applying XSLT policy:
%+C%14CRemove+JATA+Entitlements+-+SS%-C.
[01/04/12 12:35:57.666]riverAD ST:Policy returned:
[01/04/12 12:35:57.666]riverAD ST:
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.0.1.1">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input/>
</nds>
[01/04/12 12:35:57.667]riverAD ST:End transaction.




Style Sheet
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet
exclude-result-prefixes="query cmd dncv" version="1.0"
xmlns:cmd="http://www.novell.com/nxsl/java/com.novell.nds.dirxml.driver.XdsCommandProcessor"
xmlns:dncv="http://www.novell.com/nxsl/java/com.novell.nds.dirxml.driver.DNConverter"
xmlns:query="http://www.novell.com/nxsl/java/com.novell.nds.dirxml.driver.XdsQueryProcessor"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- parameters passed in from the DirXML engine -->
<xslaram name="srcQueryProcessor"/>
<xslaram name="destQueryProcessor"/>
<xslaram name="srcCommandProcessor"/>
<xslaram name="destCommandProcessor"/>
<xslaram name="dnConverter"/>
<xslaram name="fromNds"/>
<!-- identity transformation template -->
<!-- in the absence of any other templates this will cause -->
<!-- the stylesheet to copy the input through unchanged to the output
-->
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<!-- add your custom templates here -->
<xsl:template match="modify">
<xsl:choose>
<xsl:when test="@class-name='User'">
<xsl:call-template name="testJATAEntitlement"/>
</xsl:when>
<xsltherwise>
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsltherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="testJATAEntitlement"
xmlns:jstrBuf="http://www.novell.com/nxsl/java/java.lang.StringBuffer">
<xsl:variable name="cmd">
<query dest-dn="{@src-dn}" scope="entry">
<read-attr attr-name="DirXML-EntitlementRef"/>
</query>
</xsl:variable>
<xsl:variable name="result" select="query:query($srcQueryProcessor,
$cmd)"/>
<xsl:variable name="jBuffer" select="jstrBuf:new('false')"/>
<xsl:for-each select="$result//instance/attr/value">
<xsl:choose>
<xsl:when
test="contains(component[@name='volume']/text(),'JABadge')">
<xsl:variable name="jBuffer1"
select="jstrBuf:replace($jBuffer,0,6, 'true')"/>
</xsl:when>
<xsltherwise>
<xsl:message>No JABadge Entitlement</xsl:message>
</xsltherwise>
</xsl:choose>
</xsl:for-each>
<xsl:choose>
<xsl:when test="jstrBuf:toString($jBuffer) = 'true'">
<xsl:message>string buffer is: <xsl:value-of
select="jstrBuf:toString($jBuffer)"/>
</xsl:message>
<xsl:copy>
<xsl:apply-templates select="@*[name() != 'JABadge']"/>
<xsl:attribute name="JABadge">true</xsl:attribute>
<xsl:apply-templates select="node()"/>
</xsl:copy>
</xsl:when>
<xsltherwise>
<xsl:message>string buffer is: <xsl:value-of
select="jstrBuf:toString($jBuffer)"/>
</xsl:message>
<!--<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>-->
</xsltherwise>
</xsl:choose>
<xsl:variable name="jBuffer2" select="jstrBuf:new('false')"/>
<xsl:for-each select="$result//instance/attr/value">
<xsl:choose>
<xsl:when
test="contains(component[@name='volume']/text(),'TABadge')">
<xsl:variable name="jBuffer3"
select="jstrBuf:replace($jBuffer2,0,6, 'true')"/>
</xsl:when>
<xsltherwise>
<xsl:message>No TABadge Entitlement</xsl:message>
</xsltherwise>
</xsl:choose>
</xsl:for-each>
<xsl:choose>
<xsl:when test="jstrBuf:toString($jBuffer2) = 'true'">
<xsl:message>string buffer is: <xsl:value-of
select="jstrBuf:toString($jBuffer2)"/>
</xsl:message>
<xsl:copy>
<xsl:apply-templates select="@*[name() != 'TABadge']"/>
<xsl:attribute name="TABadge">true</xsl:attribute>
<xsl:apply-templates select="node()"/>
</xsl:copy>
</xsl:when>
<xsltherwise>
<xsl:message>string buffer is: <xsl:value-of
select="jstrBuf:toString($jBuffer2)"/>
</xsl:message>
<!--<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>-->
</xsltherwise>
</xsl:choose>
<!--<xsl:copy>
<xsl:apply-templates select="@*[name() != 'JABadge']"/>
<xsl:attribute name="JABadge">true</xsl:attribute>
<xsl:apply-templates select="node()"/>
</xsl:copy>-->
</xsl:template>
</xsl:stylesheet>


--
Driver_Girl
------------------------------------------------------------------------
Driver_Girl's Profile: http://forums.novell.com/member.php?userid=30126
View this thread: http://forums.novell.com/showthread.php?t=450279