Subject: RE: [xsl] Getting date of the XSL transformation into HTML output From: Mulberry Technologies List Owner <xsl-list-owner@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 20 Jul 2001 13:07:20 -0400 |
>Date: Fri, 20 Jul 2001 11:29:01 +0200 >Sender: Ghostrider <ghostrider@xxxxxxxxxxx> >From: Ghostrider <ghostrider@xxxxxxxxxxx> >To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx >X-EXP32-SerialNo: 00002352 >Subject: RE: [xsl] Getting date of the XSL transformation into HTML output >Message-ID: <3B584775@parakeet> > >Hi Rene, > >>I don't quite understand your problem.The date your XSL is generating the >HTML >is the current date isn't it? > >Yes, the date I need is the date I transformed the XML to HTML. So I need >date-of-generation for that HTML output file, hardcoded - as an additional way >to keep track of the different versions of that same generated HTML file. > >>So why not use one of the suggestions how to get the current date and use the >><xsl:value-of select="the current-date-function of your choice"/> to hardcode >>it into your HTML? >>And if you're using msxml3 (or just IE) and want to know how to pass a >>parameter: see my earlier mail: >http://www.biglist.com/lists/xsl->list/archives/200107/msg00002.html > >I'm using XMLSpy with MSXML3. I had a look at your message...i don't quite see >*how* I can do this... is your example code the code to be inserted (and >adapted)in my template matching the root of the XML doc? > ><xsl:template match="root"> ><html> ><body> ></body> ></html> ></xsl:template> > >I don't see how I can get the date in there, though... (I'm only used to >writing plain vanilla HTML with customized Javascripts but that's about it ;-) > >Is your solution comparable to that suggested by Lee (thanks, btw): > >> just include an <xsl:param name="parametername"/> tag to contain the >> parameter. you might want to set this to a default value within the >> stylesheet. How to get your parameter into the stylesheet is dependent upon >> the processor you use. With MSXML you would use >> yourXSLProcessorObject.addParameter "parametername", value > >Thanks, > >Armin > -- ====================================================================== B. Tommie Usdin mailto:btusdin@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Phone: 301/315-9631 Suite 207 Direct Line: 301/315-9634 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ====================================================================== XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Getting date of the XSL t, LAJ | Thread | [xsl] bowser compatibility, xsl tem, Meltem Kogelbauer |
Re: [xsl] Nestled Template Surreali, dante | Date | [xsl] recursive parsing?, Janning Vygen |
Month |