[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

translets not producing correct transformations

Subject: translets not producing correct transformations
From: celina <celinag@xxxxxxx>
Date: Fri, 10 Jun 2005 10:55:50 -0700
xsl whe
I have compiled my xsl file to a translet and then using the translet
to tranform my xml files.  Initially it seemed to work, but looking
more closely it seems that some of the lines of the xsl file are either
not executing properly or not at all.  These lines simply take a
parameter and set a value.  I know the parameter being sent is correct,
but i am not getting the expected output


ie:  this is the line from the xsl that is not setting the out put
value correctly:


<!-- Snippet (s:11 - Query parameter (single lookup)) [] n:838 b:56
e:857 --><xsl:for-each
select="n1:controlActProcess/n-1:queryByParameterPayload/n1:i-D/n1:value/@roo
t
"><GRS_QUERY_P-ARAMETER><PARAMETER_TXT>IDENTI-FIER_TYPE</PARAMETER_TXT><VALU-
E
_TXT><xsl:variable
name="var"><xsl:value-of
select="."/></xsl:variable><xs-l:choose><xsl:when test="$var =
'2.16.840.1.113883.3.40.1.2'">-credential-oid</xsl:when><xsl:-when
test="$var =
'2.16.840.1.113883.3.40.1.3'">-credentialType-oid</xsl:when><-xsl:when
test="$var =
'2.16.840.1.113883.3.40.1.4'">-dispAction-oid</xsl:when><xsl:-when
test="$var =
'2.16.840.1.113883.3.40.3.1'">-identifier-oid</xsl:when><xsl:-when
test="$var =
'2.16.840.1.113883.3.40.0.1'">-internalID-oid</xsl:when><xsl:-when
test="$var =
'2.16.840.1.113883.3.40.1.5'">-message-oid</xsl:when><xsl:whe-n
test="$var = '2.16.840.1.113883.3.40.1.6'">-note-oid</xsl:when><xsl:when
test="$var =
'2.16.840.1.113883.3.40.1.7'">-profile-oid</xsl:when><xsl:whe-n
test="$var = '2.16.840.1.113883.3.40.2.3'">-CPN</xsl:when><xsl:when
test="$var = '2.16.840.1.113883.3.40.2.8'">-IPC</xsl:when><xsl:when
test="$var =
'2.16.840.1.113883.3.40.0.2'">-provider-oid</xsl:when><xsl:wh-en
test="$var =
'2.16.840.1.113883.3.40.5.1'">-receiverDevice-oid</xsl:when><-xsl:when
test="$var =
'2.16.840.1.113883.3.40.4.1'">-receiverOrganization-oid</xsl:-when><xsl:when
test="$var =
'2.16.840.1.113883.3.40.3.2'">-registryId-oid</xsl:when><xsl:-when
test="$var =
'2.16.840.1.113883.3.40.3.3'">-registryUserOrg-oid</xsl:when>-<xsl:when
test="$var =
'2.16.840.1.113883.3.40.1.8'">-relationship-oid</xsl:when><xs-l:when
test="$var =
'2.16.840.1.113883.3.40.6.1'">-responsibleUser-oid</xsl:when>-<xsl:when
test="$var =
'2.16.840.1.113883.3.40.5.2'">-senderDevice-oid</xsl:when><xs-l:when
test="$var =
'2.16.840.1.113883.3.40.4.2'">-senderOrganization-oid</xsl:wh-en><xsl:when
test="$var =
'2.16.840.1.113883.3.40.6.2'">-sendingUser-oid</xsl:when><xsl-:when
test="$var =
'2.16.840.1.113883.3.40.1.9'">-targetMessage-oid</xsl:when><x-sl:when
test="$var =
'2.16.840.1.113883.3.40.1.10'"->workLocation-oid</xsl:when><x-sl:when
test="$var = '2.16.840.1.113883.3.40.2.12'"->OTH</xsl:when><xsl:when
test="$var =
'2.16.840.1.113883.3.40.1.1'">-condition-oid</xsl:when><xsl:w-hen
test="$var = '2.16.840.1.113883.3.40.2.1'">-CDSSLIC</xsl:when><xsl:when
test="$var = '2.16.840.1.113883.3.40.2.5'">-CPSSLIC</xsl:when><xsl:when
test="$var = '2.16.840.1.113883.3.40.2.4'">-CPSID</xsl:when><xsl:when
test="$var = '2.16.840.1.113883.3.40.2.9'">-JULI</xsl:when><xsl:when
test="$var = '2.16.840.1.113883.3.40.2.6'">-DENID</xsl:when><xsl:when
test="$var = '2.16.840.1.113883.3.40.2.19'"->RNID</xsl:when><xsl:when
test="$var = '2.16.840.1.113883.3.40.2.2'">-CDSSUID</xsl:when><xsl:when
test="$var = '2.16.840.1.113883.3.40.2.7'">-EMPID</xsl:when><xsl:when
test="$var = '2.16.840.1.113883.3.40.2.10'"->LPNID</xsl:when><xsl:when
test="$var = '2.16.840.1.113883.3.40.2.16'"->PPID</xsl:when><xsl:when
test="$var = '2.16.840.1.113883.3.40.2.11'"->MPID</xsl:when><xsl:when
test="$var = '2.16.840.1.113883.3.40.2.14'"->PHID</xsl:when><xsl:when
test="$var = '2.16.840.1.113883.3.40.2.15'"->PHYID</xsl:when><xsl:when
test="$var = '2.16.840.1.113883.3.40.2.13'"->PEPID</xsl:when><xsl:when
test="$var = '2.16.840.1.113883.3.40.2.21'"->RQHR</xsl:when><xsl:when
test="$var = '2.16.840.1.113883.3.40.2.17'"->RACID</xsl:when><xsl:when
test="$var = '2.16.840.1.113883.3.40.2.18'"->RMID</xsl:when><xsl:when
test="$var = '2.16.840.1.113883.3.40.2.20'"->RNPID</xsl:when><xsl:when
test="$var =
'2.16.840.1.113883.3.40.2.22'"->SHR</xsl:when><xsl:otherwise>---</xsl:otherwi
s
e></xsl:choose-></VALUE_TXT></GRS_QUERY_PARAM-ETER></xsl:for-each>


Other similar lines are not generating anything at all let-alone an
incorrect value.


ie:
<!-- Snippet (s:60 - Query parameter with Y value) [] n:795 b:45 e:1101
--><GRS_QUERY_PARAMETER><PARAM-ETER_TXT>GET_DETAILS_FLAG</PAR-AMETER_TXT><VAL
U
E_TXT>Y</VALUE-_TXT></GRS_QUERY_PARAMETER>

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.