Hello,
I am having issues trying to grab the modify add-value/value and place
in a variable. I have tried different node paths to the value node but
none return in the output. Thanks for the help.

<?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>
<!-- This will match everything and can be changed as needed -->
<xsl:template match="nds">
<xsl:variable name="eagle-val"
select="./input/modify/modify-attr[@attr-name='eaglenumber']/add-value/value"/>
<xsl:variable name="userid"
select="./input/modify/modify-attr[@attr-name='userid']/add-value/value"/>
<xsl:variable name="timestamp"
select="./input/modify/modify-attr[@attr-name='timestamp']/add-value/value"/>
<xsl:variable name="primaryAffiliation"
select="./input/modify/modify-attr[@attr-name='primaryAffiliation']/add-value/value"/>
<xsl:variable name="affiliation"
select="./input/modify/modify-attr[@attr-name='affiliation']/add-value/value"/>
<xsl:variable name="priorityStatus"
select="./input/modify/modify-attr[@attr-name='priorityStatus']/add-value/value"/>
<xsl:variable name="primaryAlias"
select="./input/modify/modify-attr[@attr-name='primaryAlias']/add-value/value"/>
<xsl:variable name="mailRoutingAddress"
select="./input/modify/modify-attr[@attr-name='malRoutingAddress']/add-value/value"/>
<xsl:variable name="mailHost"
select="./input/modify/modify-attr[@attr-name='mailHost']/add-value/value"/>
<xsl:variable name="alias"
select="./input/modify/modify-attr[@attr-name='alias']/add-value/value"/>

<xsl:message>The value of eagle-val is<xsl:value-of
select="$eagle-val"/></xsl:message>
<!-- This section is the output document for the JMS Driver
-->
<output>
<idm>
<eagle><xsl:value-of
select="$eagle-val"/></eagle>
<userid><xsl:value-of
select="$userid"/></userid>
<timestamp><xsl:value-of
select="$timestamp"/></timestamp>
<primaryAffiliation><xsl:value-of
select="$primaryAffiliation"/></primaryAffiliation>
<affiliations>
<affiliation><xsl:value-of
select="$affiliation"/></affiliation>
<affiliation><xsl:value-of
select="$affiliation"/></affiliation>
</affiliations>
<priorityStatus><xsl:value-of
select="$priorityStatus"/></priorityStatus>
<primaryAlias><xsl:value-of
select="$primaryAlias"/></primaryAlias>
<mailRoutingAddress><xsl:value-of
select="$mailRoutingAddress"/></mailRoutingAddress>
<mailHost><xsl:value-of
select="$mailHost"/></mailHost>
<aliases>
<alias><xsl:value-of
select="$alias"/></alias>
<alias><xsl:value-of
select="$alias"/></alias>
</aliases>
</idm>
</output>
</xsl:template>
</xsl:stylesheet>


--
iceman3
------------------------------------------------------------------------
iceman3's Profile: http://forums.novell.com/member.php?userid=64396
View this thread: http://forums.novell.com/showthread.php?t=456245