[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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
current user logon
/ 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.