Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet exclude-result-prefixes="query cmd dncv soap-env envelope" 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" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
- <!-- parameters passed in from the Identity Manager engine -->
- <xsl:param name="srcQueryProcessor"/>
- <xsl:param name="destQueryProcessor"/>
- <xsl:param name="srcCommandProcessor"/>
- <xsl:param name="destCommandProcessor"/>
- <xsl:param name="dnConverter"/>
- <xsl:param name="fromNds"/>
- <!-- This is for testing the stylesheet outside of Identity Manager so things are pretty to look at -->
- <xsl:strip-space elements="*"/>
- <xsl:preserve-space elements="value component password check-password"/>
- <xsl:output indent="yes" method="xml"/>
- <!-- ***************** -->
- <!-- Add SOAP Header -->
- <!-- ***************** -->
- <xsl:template match="source">
- </xsl:template>
- <xsl:template match="add|modify|delete|rename|move|query|output/status">
- <xsl:choose>
- <xsl:when test="operation-data/return-to-me[@command='heartbeat']">
- <xsl:message>Output: Do not add SOAP header to heartbeat</xsl:message>
- <xsl:copy>
- <xsl:apply-templates select="node()|@*"/>
- </xsl:copy>
- </xsl:when>
- <xsl:when test="operation-data/return-to-me[@command='remote-loader-query']">
- <xsl:message>Output: Do not add SOAP header to remote loader query</xsl:message>
- <xsl:copy>
- <xsl:apply-templates select="node()|@*"/>
- </xsl:copy>
- </xsl:when>
- <xsl:when test="operation-data/return-to-me[@command='check-password']">
- <xsl:message>Output: Do not add SOAP header to check-password</xsl:message>
- <xsl:copy>
- <xsl:apply-templates select="node()|@*"/>
- </xsl:copy>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message>Output: Add SOAP Headers</xsl:message>
- <soap12:envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
- <soap12:Body>
- <xsl:apply-templates select="node()"/>
- </soap12:Body>
- </soap12:envelope>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template match="nds|input">
- <xsl:apply-templates select="@*|node()"/>
- </xsl:template>
- <!-- 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>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement