> DNU home > online course > DirXML Driver Development
April 2001
DeveloperNet University Course

XSLT Solution Explanation 2

Note: Your solution may be different than the one below. However the important thing is that the DSTrace output shows that your solution works and more importantly the correctly formatted phone number is actually put into NDS.

Read the Interpreting XPath section for more information about resolving XPATH expressions.



The XPATH expression in this solution's match statement selects the <value> element as the context node because it is named "value" and has an attribute named "type" with a value of "teleNumber". This match pattern will select all <value> elements with a "type" attribute value of "teleNumber" no matter what the parent element is. So, it works for <add-attr> elements as well as <modify-attr> elements that have different nested locations for their <value> element.

Previous Contents Next
download sample file