RE: [xsl] XSL and ASP

Subject: RE: [xsl] XSL and ASP
From: "Luke Ambrogio" <gryzlaw@xxxxxxxxxxx>
Date: Sat, 15 Mar 2003 07:47:48 +0100 (W. Europe Standard Time)
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
 
10x
 
-------Original Message-------
 
Date: Friday, March 14, 2003 19:15:58
Subject: RE: [xsl] XSL and ASP
 
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
____________________________________________________
  IncrediMail - Email has finally evolved - Click Here
Current Thread