I want create a jsp page applying the following xsl
 
<?xml version="1.0" encoding='ISO-8859-1'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:import href="Homepage.xsl" />

<xsl:variable name="selectedTemplateForBlocknoticia_1">
text
<compositor:formatBlock blockXSLPath="noticiaDestacada.xsl">
<compositor:getOutput block="noticia" index="1" />
</compositor:formatBlock>
</xsl:variable>
 
<xsl:template match="/">
<xsl:apply-templates select="page" />
</xsl:template>
</xsl:stylesheet>
where Homepage.xsl contains
 
<?xml version="1.0" encoding='ISO-8859-1'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output method="html" indent="yes" />
<xsl:template match="page_block[@type='noticia' and @index_num='1']" >
Procesando bloque <br/>
<xsl:value-of select="$selectedTemplateForBlocknoticia_1" />
<br/>
</xsl:template>
</xsl:stylesheet>
 
to de xml
 
<?xml version="1.0" encoding='ISO-8859-1'?>
<page>
<page_block type="noticia" index_num="1">
<noticia id="1000"><atribute id="10"><value>1</value>
</atribute><atribute id="1"><value>1</value></atribute>
</noticia>
</page_block>
</page>
 
The problem is that where the value of the variable selectedTemplateForBlocknoticia_1 must appear only "text" appears,
"<compositor:formatBlock blockXSLPath="noticiaDestacada.xsl">
<compositor:getOutput block="noticia" index="1" />
</compositor:formatBlock>" is ignored and it�s not included in the output file .... where is my error? ... can anybody help me?

 
thanks
 

 

Reply via email to