 |
 |
 |
Hi,
Yes, sorry, because mail server doesn't support MIME Content-Type: text/html
(#5.2.3).
So i edited manually after i paste it from code with color.
----- Original Message -----
From: "Michael Kay" <mike@xxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, May 02, 2005 11:18 AM
Subject: RE: [xsl] basic question about xalan/xsl param ?
> I think you probably meant to write
>
> <xsl:if test="$typeElement='Var'">
> <xsl:call-template name="typeVar"/>
> </xsl:if>
> <xsl:if test="$typeElement='Prca'">
> <xsl:call-template name="typePrca"/>
> </xsl:if>
>
> Michael Kay
> http://www.saxonica.com/
>
> > -----Original Message-----
> > From: NGUYEN Hong Thai [mailto:Hong-Thai.Nguyen@xxxxxxx]
> > Sent: 02 May 2005 09:58
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject: [xsl] basic question about xalan/xsl param ?
> >
> > Hi all,
> > I tried to pass a parameter from java (xalan) to XSLT, and
> > get result after
> > tranform. In XSL file, it depend on the param passed to call the =
> > templete and only one templete at moment:
> > Code Java:
> > Transformer transformer =3D tFactory.newTransformer(new
> > StreamSource(Constante.xsltPath));
> > transformer.setParameter("typeElement",param); //pass the
> > param to XSLT
> > transformer.transform(source,cible);
> > XSLT:
> > <?xml version="1.0" encoding="UTF-8"?>
> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > version="1.0">
> > <xsl:output method="text"/>
> > <xsl:param name="typeElement" select="/"/>
> > <xsl:template>
> > <xsl:if test="$typeElement=Var">
> > <xsl:call-template name="typeVar"/>
> > </xsl:if>
> > <xsl:if test="$typeElement=Prca">
> > <xsl:call-template name="typePrca"/>
> > </xsl:if>
> > </xsl:template>
> >
> > <xsl:template name="typeVar">
> > <!-- Code to transform Var -->
> > </xsl:template>
> >
> > <xsl:templete name="typePrca">
> > <!-- code to transform Prca -->
> > </xsl:templete>
> >
> > </xsl:stylesheet>
> > But, it doesn't work yet. Some one can help me ?
> > Thanks !
> >
> >
> > NGUYEN Hong Thai
> > (M2R. Universite' Joseph Fourier)
> > GETA, CLIPS, IMAG-campus, BP53
> > 385, rue de la Bibliothe`que
> > 38041 Grenoble Cedex 9, France
> > Mel: Hong-Thai.Nguyen@xxxxxxx
> > Tel: +33.4 - 7651- 4817
> > Fax: +33.4 - 76-514405/446675
> > Mobile: +33 (06) 88 54 94 13
|
 | 

|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |