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

RE: getting the filename

Subject: RE: getting the filename
From: "Roman Huditsch" <r.huditsch@xxxxxxxx>
Date: Thu, 12 Jul 2001 11:53:05 +0200
xform stylesheet
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@xxxxxxxxxxxx]
Gesendet: Donnerstag, 12. Juli 2001 10:44
An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Betreff: RE:  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@xxxxxxxx;  r.huditsch@xxxxxxxx
> 
> 

 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.