Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: xsl lost reference with select="document('...

From: "fausto" <faustousme@-------.--->
To: NULL
Date: 12/5/2005 12:42:00 PM
Hello Martin, here there are a little of code:


.=2E.
<xsl:variable name=3D"REP_CARACT_SBL"
select=3D"document('caracteristicas.xml')/Caracteristicas"/>
<xsl:template match=3D"/">
<FNX_PEDIDOS>
.=2E..
<xsl:for-each
select=3D"/SiebelMessage/ListOfPecComQuoteIo/ComQuote/ListOfComQuoteSolutio=
n/ComQuoteSolution/ListOfComQuoteSolutionItem/ComQuoteSolutionItem">
.=2E..
<xsl:call-template name=3D"EQU_CARACT_SBL">
.=2E.
</xsl:call-template>

<xsl:template name=3D'EQU_CARACT_SBL'>
    <xsl:for-each
select=3D"$REP_CARACT_SBL/INSTANCIA/ELEMENTO/CARACTERISTICA">
    <xsl:if test=3D"../../INSTANCIA_ID=3D$INSTANCIA_SBL and
.=2E/ELEMENTO_ID=3D$ELEMENTO_SBL">
					<xsl:with-param name=3D"CARACTERISTICA_ID"
select=3D"CARACTERISTICA_ID"/>
    <xsl:with-param name=3D"VALOR">
    <xsl:choose>
    <xsl:when test=3D"CARACTERISTICA_ID=3D'125'">
    <xsl:variable name=3D"PARAMETER"
select=3D"//ComQuoteSolutionItem[PartNumber=3D'TELCO-10003']"/>
    <xsl:value-of
select=3D"$PARAMETER/ListOfComQuoteSolutionItemParameter/ComQuoteSolutionIt=
emParameter[ParamName=3D'E-Mail']/ParamValue"/>
 here is the problem. The xPath isn't able access the original file, on
the other hand, the external file doesn=B4t have problem.
    </xsl:when>
    <xsl:otherwise>
	no configurado
    </xsl:otherwise>
    </xsl:choose>
  </xsl:with-param>
</xsl:for-each>
</xsl:template>
.=2E....
.=2E.
.=2E




Caracteristicas.xml

<Caracteristicas>
   <INSTANCIA>
      <INSTANCIA_ID>TELCO-00509</INSTANCIA_ID>
      <ELEMENTO>
         <ELEMENTO_ID>TELCO-00499</ELEMENTO_ID>
         <CARACTERISTICA>
            <CARACTERISTICA_ID>1</CARACTERISTICA_ID>
         </CARACTERISTICA>
         <CARACTERISTICA>
            <CARACTERISTICA_ID>125</CARACTERISTICA_ID>
         </CARACTERISTICA>
.=2E....
      </ELEMENTO>
   </INSTANCIA>
</Caracteristicas>


MArtin, if isn=B4t clear, pelase tell me, i'll send you the original
file.

Again thanks


fausto



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent