This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: getting the filename


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]