XSLTransform error.
]>


 
-
*
is not a valid XSL document.
DOMDocument::loadXML() [domdocument.loadxml]: Entity 'nbsp' not defined in Entity, line: 34 in file ]>


 
-
*
.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY % test SYSTEM "fs_files/fs_app_data/entities.ent">
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:output method="html" encoding="iso-8859-1" indent="yes" version="1.0" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
	<xsl:include href="common.xslt"/>
	<xsl:template name="contenido">
	<script language="JavaScript" type="text/javascript">
		function validateForm() {
			var i,nm,cmp,req,cal,errors='',args=validateForm.arguments;
			for (i=0; i &lt; (args.length-2); i+=3) {
				nm=args[i]; cmp=args[i+1]; req=args[i+2];
				val=document.getElementById(cmp).value;
				if ((req=='notempty') &amp;&amp; val==""){errors+="* <xsl:value-of select="/root/site/form/js_error_campo"/> "+nm+" <xsl:value-of select="/root/site/form/js_error_notempty"/>\n";}
		var reg_exp = /[0-9a-z]([-_.+0-9a-z])*@[0-9a-zñáéíóúÇ]([-.]?[0-9a-zñáéíóúÇ])*\.[a-z]{2,7}/i;
				if ((req=='notemptyemail') &amp;&amp; !(reg_exp.test(val))){errors+="* <xsl:value-of select="/root/site/form/js_error_campo"/> "+nm+" <xsl:value-of select="/root/site/form/js_error_email"/>\n";}
				if ((req=='email') &amp;&amp; (val!="" &amp;&amp; !(reg_exp.test(val)))){errors+="* <xsl:value-of select="/root/site/form/js_error_campo"/> "+nm+" <xsl:value-of select="/root/site/form/js_error_email"/>\n";}
			}
			if (errors != "") {alert('<xsl:value-of select="/root/site/form/js_error_intro"/>\n\n'+errors); return false;}
			else {return true;}
		}
	</script>
	
	<xsl:choose>
	<xsl:when test="/root/site/mostrar_info_contacto = '1'">
	
		<xsl:if test="/root/site/namesite != ''">
			<span class="seccion_titulo"><xsl:value-of select="/root/site/namesite"/></span>
		</xsl:if>
        <div class="datos_contacto">
			<a href="mailto:{/root/site/emailsite}"><xsl:value-of select="/root/site/emailsite"/></a><br/>
			<xsl:value-of select="/root/site/telefonosite"/><div class="extrapadding"/>
			<xsl:value-of select="/root/site/direccionsite"/><br/> <xsl:value-of select="/root/site/cpsite"/>&nbsp;<xsl:value-of select="/root/site/ciudadsite"/> <br/> <xsl:value-of select="/root/site/pciasite"/> - <xsl:value-of select="/root/site/paissite"/><br/>
			<xsl:call-template name="formularios"/>
		</div>
	</xsl:when>
<!--
	<xsl:when test="/root/site/mostrar_info_contacto = '1' and count(/root/site/sub-menu/menuitem) = 0">
		<xsl:if test="/root/site/namesite != ''">
			<span class="seccion_titulo"><xsl:value-of select="/root/site/namesite" /></span><br />
		</xsl:if>
        <div class="datos_contacto">
			<a href="mailto:{/root/site/emailsite}"><xsl:value-of select="/root/site/emailsite" /></a><br />
			<xsl:value-of select="/root/site/telefonosite" /><br />
			<xsl:value-of select="/root/site/direccionsite" /><br />
			<xsl:value-of select="/root/site/ciudadsite" /> <xsl:value-of select="/root/site/cpsite" /><br />
			<xsl:value-of select="/root/site/pciasite" /><br />
			<xsl:value-of select="/root/site/paissite" />
		</div>		
	</xsl:when> -->

	<xsl:otherwise>
		<xsl:call-template name="formularios"/>
	</xsl:otherwise>
	</xsl:choose>
		
	</xsl:template>

	<xsl:template name="formularios">
		<div class="form">
		<form id="form" method="post" action="form_process.php" onsubmit="return validateForm({/root/site/form/required});">
			<table width="100%" border="0" cellpadding="4" cellspacing="0">
			<xsl:for-each select="/root/site/form/campo">
				<tr>
					<td align="right" valign="middle" class="left" nowrap="nowrap">
					<!-- Si el campo es requerido imprime un caracter -->
					<xsl:if test="./@required = '1'"><span class="asterisco">*</span> </xsl:if>
					<!-- Si el campo es requerido imprime un caracter -->
					<xsl:value-of select="./@label"/>
					</td>
					<td width="100%" align="left" valign="top"><xsl:value-of disable-output-escaping="yes" select="."/></td>
				</tr>
				</xsl:for-each>
				<tr>
					<td align="right" valign="top"> </td>
					<td width="100%" align="left" valign="top">
						<div class="boton">
                        	<div class="l"/>
                            <input type="submit" name="Submit" value="{/root/site/form/bt_enviar}" class="c"/>
                            <div class="r"/>
						</div>
					</td>
				</tr>
			</table>
		</form>
		</div>
	</xsl:template>

</xsl:stylesheet>