It's the same , too bad thanks anyway Pierre
-----Message d'origine----- De : eoghan [mailto:[EMAIL PROTECTED] Envoyé : mercredi 30 juin 2004 22:17 À : Pierre Objet : Re: [PHP] xslt_create take this line out of your xml and see what happens <?xml:stylesheet type="text/xsl" href="style1.xsl"?> Pierre wrote: > Thanks for the link :) > In case of this is my .xml > <?xml version="1.0" encoding="utf-8" ?> > <?xml:stylesheet type="text/xsl" href="style1.xsl"?> > <formulaire> > <FRMFAT04001> > <c001 type="input" desc="Societe" size="32">John > Smith</c001> > <c002 type="input" desc="Adresse" size="32">25</c002> > <c003 type="input" desc="Complement" > size="32">Internet</c003> > <c004 type="input" desc="Code postal" > size="15">English</c004> > <c005 type="input" desc="Ville" size="32">Visual > Basic</c005> > <c006 type="input" desc="Comte/Cedex" size="32"></c006> > </FRMFAT04001> > </formulaire> > > And my .xsl > <?xml version="1.0" encoding="utf-8" ?> > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > <xsl:output method="html" /> > <xsl:template match="/"> > <xsl:for-each select="/formulaire/FRMFAT04001"> > <!-- > The following for-each loop will iterate through all of the child elements > of employee > --> > <xsl:for-each select="*"> > <xsl:value-of select="@desc" /> > <!-- Note: Curly braces are a shorthand for the value of an attribute > --> > <xsl:element name="[EMAIL PROTECTED]"> > <!-- Set the Size of the textbox > --> > <xsl:attribute name="size"> > <xsl:value-of select="@size" /> > </xsl:attribute> > <!-- Set the Size of the textbox > --> > <xsl:attribute name="maxlength"> > <xsl:value-of select="@size" /> > </xsl:attribute> > <!-- Set the value of the text box > --> > <xsl:attribute name="value"> > <xsl:value-of select="text()" /> > </xsl:attribute> > <br /> > </xsl:element> > </xsl:for-each> > </xsl:for-each> > </xsl:template> > </xsl:stylesheet> > > Pierre > > -----Message d'origine----- > De : eoghan [mailto:[EMAIL PROTECTED] > Envoyé : mercredi 30 juin 2004 21:52 > À : Pierre > Cc : php-general > Objet : Re: [PHP] xslt_create > > thats really difficult to say without seeing the xsl and xml. theres a > very good xsl list over at mulberrytech.com too if you need specific xsl > help > http://www.mulberrytech.com/xsl/xsl-list/index.html > > > Pierre wrote: > > >>Yes it's ok thanks to all :) >>But now I have a little problem : my page is all white >>This is my code : >>$xml='frm2004.xml'; >>$xsl='style1.xsl'; >>$xslt=xslt_create(); >>$resultat=xslt_process($xslt,$xml,$xsl); >>xslt_free($xslt); >>echo $resultat; >> >>what's wrong ? please >> >>Pierre >> >>-----Message d'origine----- >>De : Ray Hunter [mailto:[EMAIL PROTECTED] >>Envoyé : mercredi 30 juin 2004 21:45 >>À : Pierre >>Cc : php-general >>Objet : RE: [PHP] xslt_create >> >>On Wed, 2004-06-30 at 14:36, Pierre wrote: >> >> >>>Ok so I must recompile php with this option but I can't is there any php >>>class easy to use that can do this ? >> >> >>If you are on a linux box and have php installed via rpm you might be >>able to get a php-xslt rpm that you can use. If on windows you can >>download the zip file from php.net that contains all the dlls and in >>there you will find the php xslt (sablotron) dll and you will have to >>uncomment that dll in your php.ini file. >> >>-- >>BigDog >> > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php