Subject: RE: [xsl] XSL and ASP From: "Gareth Jenkins" <gareth.jenkins@xxxxxxxxxxxxx> Date: Fri, 14 Mar 2003 18:09:14 -0000 |
Luke, You can use the asp namespace, you just need to declare it... put the following in your xsl:stylesheet element: xmlns:asp="http://schemas.microsoft.com" the uri is actually irrelevant as the asp namespace uri is hidden in asp.net, so you can put anything you like in between the quotes. There is one other thing you will have to do to ensure the .aspx files you create will compile... When you run the xml through the xsl you have created, the .net xsl parser adds a declaration to the false asp namespace you created above. This sends the compiler into fits as it thinks you are trying to redefine the asp namespace. The only way I've found around this is to do some basic string replacements on the xsl output before you write the .aspx file (i.e. just remove the xmlns:asp... declarations) I am working on a project that has very similar functions (creates .aspx and .ascx dynamically pages from xml through xsl) and there are many problems that I've had to overcome to get certain things to work correctly , feel free to quiz me further if necessary. Gareth. ____________________________ Gareth Jenkins Target 100 Systems Ltd -----Original Message----- >but I want to create an xsl that changes xml into an aspx file, i therefore want to add code such as: >i use an aspx file to get the xml and xsl file and carry out the transformation but when i run the file >the server gives me an error that it doesn't recognise the namespace asp.... XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSL and ASP, Luke Ambrogio | Thread | RE: [xsl] XSL and ASP, Luke Ambrogio |
Re: [xsl] HOW TO CHECK FOR EXISTENC, Bix | Date | RE: [xsl] Choose Test for Emtpy ele, Passin, Tom |
Month |