Re: XT: Output current users' login and full name?

Subject: Re: XT: Output current users' login and full name?
From: Norman Walsh <ndw@xxxxxxxxxx>
Date: Fri, 13 Aug 1999 12:58:41 -0400
/ Kai.Grossjohann@xxxxxxxxxxxxxxxxxx (Kai Großjohann) was heard to say:
| One approach is to have XT create "@XYZZY@" for the doccreator element
| and to run the XT output through sed which puts in user and login
| name.  But that's the wrong way to do it since it means that my
| documents mustn't contain that string.

Another possibility is to construct a little wrapper XSL stylesheet
that defines these as variables. Instead of processing the documents
with stylesheet x.xsl, construct y.xsl:

<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0";>

<xsl:variable name="login-name">ndw</xsl:variable>
<xsl:variable name="full-name">Norman Walsh</xsl:variable>

<xsl:include href="x.xsl"/>
</xsl:stylesheet>

And refer to the variables login-name and full-name in your x.xsl
stylesheet.


                                        Cheers,
                                          norm

-- 
Norman Walsh <ndw@xxxxxxxxxx>      | Everything is temporary.
http://nwalsh.com/                 | 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread