|
[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?
/ 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








