Subject: [xsl] XSL and ASP methods From: "Luke Ambrogio" <gryzlaw@xxxxxxxxxxx> Date: Tue, 27 May 2003 13:03:09 +0200 (W. Europe Daylight Time) |
i need to add an asp method to and asp page. but this page is created using an xml and xslt transformation for if i put the method beofre the transformation it will not compile since it uses tags that are in the xsl if i do it in the xsl it comes as plain text and is not compiled what should i do? i have this to chnage an xml into html using xslt void Page_Load(Object Sender, EventArgs e) { Response.Write(m1 transformXML(Server.MapPath(null), m1.forum(outputxml.ToString()))); } but i need to add: public void UploadFile(object sender , EventArgs E) { if(myFile.PostedFile!=null) { string FileServerDir="F:\CSharp\File\"; string fname = myFile.PostedFile.FileName; fname=fname.Substring(fname.LastIndexOf("\")) ; myFile.PostedFile.SaveAs(FileServerDir+fname) ; Message.InnerHtml = "File Successfully saved"; } } but it refers to form components not yet declared in the asp since they are in the xsl regards luke -------Original Message------- From: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Date: Monday, March 17, 2003 16:48:30 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] XSL and ASP first run the xsl, take the output as a string as use a simple replace() on that string to get rid of the namespace declarations before you write the .ascx file. it's only at compile time that it sees the re-declaration of the namespace as a problem. >sorry but how am I going to replace the xslnm:asp... so that during conversion it sees it as a valid ?naespace i can't visualise at what point to the the string replacement XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Create table with optiona, Ricardo Saraiva | Thread | [xsl] Getting metadata values from , Sergio Lorenzo |
Re: [xsl] special characters, Jeni Tennison | Date | RE: [xsl] Create table with optiona, Martin Rowlinson \(M |
Month |