I have the folowing XML file >>>
<page>
<item langue="fr">
<javascripts defaut="1">
<javascript>js_one</javascript>
<javascript>js_two</javascript>
</javascripts>
<stylesheets defaut="1">
<stylesheet media="all" title="">st_one</stylesheet>
<stylesheet media="print" title="oui">st_two</stylesheet>
</stylesheets>
</item>
</page>
-----------------------------------------
connected to this XSLT file >>>
<xsl:stylesheet version="1.0" xmlns:xsl=" <xslutput method="xml" version="1.0" encoding="ISO-8859-1" indent="yes"/>
<xsl:template match="/">
<xsl:for-each select="//page/item[@langue='fr']/javascripts">
<xsl:if test="@defaut='1'">
<script src="javascript/default.js" type="text/javascript"/>
</xsl:if>
<script src="javascript/{javascript}.js" type="text/javascript"/>
</xsl:for-each>
<xsl:for-each select="//page/item[@langue='fr']/stylesheets">
<xsl:if test="@defaut='1'">
<link href="stylesheet/default.css" rel="stylesheet" type="text/css" media="all"/>
<link href="stylesheet/formulaires.css" rel="stylesheet" type="text/css" media="all"/>
</xsl:if>
<link href="stylesheet/{stylesheet}.css" rel="stylesheet" type="text/css" media="{@media}" title="{@title}"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
---------------------
and I get only >>>>
js_one
do you know why ?
thank you
<page>
<item langue="fr">
<javascripts defaut="1">
<javascript>js_one</javascript>
<javascript>js_two</javascript>
</javascripts>
<stylesheets defaut="1">
<stylesheet media="all" title="">st_one</stylesheet>
<stylesheet media="print" title="oui">st_two</stylesheet>
</stylesheets>
</item>
</page>
-----------------------------------------
connected to this XSLT file >>>
<xsl:stylesheet version="1.0" xmlns:xsl=" <xslutput method="xml" version="1.0" encoding="ISO-8859-1" indent="yes"/>
<xsl:template match="/">
<xsl:for-each select="//page/item[@langue='fr']/javascripts">
<xsl:if test="@defaut='1'">
<script src="javascript/default.js" type="text/javascript"/>
</xsl:if>
<script src="javascript/{javascript}.js" type="text/javascript"/>
</xsl:for-each>
<xsl:for-each select="//page/item[@langue='fr']/stylesheets">
<xsl:if test="@defaut='1'">
<link href="stylesheet/default.css" rel="stylesheet" type="text/css" media="all"/>
<link href="stylesheet/formulaires.css" rel="stylesheet" type="text/css" media="all"/>
</xsl:if>
<link href="stylesheet/{stylesheet}.css" rel="stylesheet" type="text/css" media="{@media}" title="{@title}"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
---------------------
and I get only >>>>
js_one
do you know why ?
thank you