Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: xsl lost reference with select="document('... [Thread Next] Re: xsl lost reference with select="document('...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
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
