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

A strange problem...

Subject: A strange problem...
From: i92agcad@xxxxxx
Date: Thu, 26 Feb 2004 20:13:52 +0100 (MET)
 A strange problem...
 I have this files...

*** sectores.xml
 <sectores>
	<tareas>
		<tarea>dibujaSectores</tarea>
	</tareas>
</sectores>

*** graficos.xslt

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet ...

<xsl:output ...
	
<xsl:include href="includes.xslt"/>
	
<xsl:variable name="urlConfigGrafico">../sectores.xml</xsl:variable>
	
<xsl:template match="grafico">
 
 <svg width="100%" height="100%">
			
 <xsl:for-each select="document(string($urlConfigGrafico))//tareas/tarea">
  <xsl:call-template name="llamaTarea">
   <xsl:with-param name="nombreTarea" select="."/>
  </xsl:call-template>			
 </xsl:for-each>

 </svg>
</xsl:template>

 *** tareas.xsl

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet ...
<xsl:template name="llamaTarea">
 <xsl:param name="nombreTarea"/>
		
 <xsl:choose>
  <xsl:when test="$nombreTarea = 'dibujaSectores'">
   <xsl:call-template name="dibujaSectores"/>
  </xsl:when>
 </xsl:choose>
</xsl:template>		

 *** sectores.xslt
<xsl:styl.......
<xsl:template name="dibujaSectores">

 </xsl:template>


 The paths between files are ok.

 I need to compile it with a .bat file who calls a XALAN processors.

 After the process the output file contains only the SVG header.

 But if i rewrite the "grafico.xslt" like this...

 <xsl:call-template name="dibujaSectores"/>

 <xsl:for-each select="document(string($urlConfigGrafico))//tareas/tarea">
  <xsl:call-template name="llamaTarea">
   <xsl:with-param name="nombreTarea" select="."/>
  </xsl:call-template>			
 </xsl:for-each>

 Then the output file contains the graphic... 

 What could happens?¿? This "new" call what i have to write why not execute 
correctly in the other way?¿

 ThanksThanksThanks

 PD: If someone can helps me i will say him "Ole!!!"

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.