xsl-list
[Top] [All Lists]

RE: % in xslt printing as ?

2005-09-23 00:47:15
I don't have the msxsl documentation to hand but I would guess that if your
parameter is named Date then you specify Date="2005-01-01".

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: stuart arnold [mailto:stuart(_dot_)arnold(_at_)comcast(_dot_)net] 
Sent: 22 September 2005 23:59
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] % in xslt printing as ?

I treied that, I guess I'm missing something.

I'm calling at:
      msxsl.exe testme.xml myfix.xsl param="2005-01-01" -o out.html

In the XSL, what should I have, I mean, how does it know that 
that param
goes with what, eg
      <xsl:param name="Date" />

Should I have more on the command line or the XSL?

Thanks for the reply and any help.

-----Original Message-----
From: Michael Kay [mailto:mike(_at_)saxonica(_dot_)com] 
Sent: Thursday, September 22, 2005 6:38 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] % in xslt printing as ?



I'm trying to pass a variable to my xsl processor as well, 
but I don't

know how to recive it in the XSL. What xsl command do I use?

Use <xsl:param name="nnnn"/> as a top-level element (a child of
xsl:stylesheet). Then refer to the parameter just like a variable, as
$nnnn. The way you actually supply the parameter a value 
depends on the
processor API you are using.

Michael Kay
http://www.saxonica.com/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>