This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: getting the filename
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] getting the filename
- From: "Roman Huditsch" <r dot huditsch at hico dot com>
- Date: Thu, 12 Jul 2001 11:53:05 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi Michael!
Thank you for your fast response. But I unfortunately think that the
problem isn't really solved with that.
XML:
....
<xform:xform>
<xform:submitInfo target="processForm.asp" method="post"
/>
</xform:xform>
.....
XSL: <xsl:template match="div">
<div>
<xsl:param name="path" select="."/>
<xsl:variable name="target"
select="//xform:submitInfo/@target"/>
<xsl:variable name="all"
select="concat($target,'?',$path)"/>
<form method="post">
<xsl:attribute name="action">
<xsl:value-of select="$all"/>
</xsl:attribute>
....
As you can see in the source above, I would like to send an additional
paramter to an ASP page, which is called by pressing a "submit" button.
And this paramteter should contain the name of the XML-file from which
the XSL-Stylesheet is called.
Thanks a lot,
Roman
-----Ursprüngliche Nachricht-----
Von: Michael Kay [mailto:mhkay@iclway.co.uk]
Gesendet: Donnerstag, 12. Juli 2001 10:44
An: xsl-list@lists.mulberrytech.com
Betreff: RE: [xsl] getting the filename
> I have a slight problem with my xsl-stylesheet. I have to store the
> filename of my XML-file, which calls the xsl-stylesheet, in a variable
> within my XSL-file. Is there a way to get that filename into my
> variable?
Yes, just pass it as a stylesheet parameter.
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
> Roman Huditsch (RH )
> _____________________________________________________________________
> hico Informations- und Kommunikations-Management Gesellschaft m.b.H.
> TechLab, Thomas A. Edison Straße 2.
> A-7000 Eisenstadt / Austria
> phone: +43/2682/704-61-00; fax: +43/2682/704-71-61-10
> e-mail:support@hico.com; r.huditsch@hico.com
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list