[XSL-LIST Mailing List Archive Home]
RE: [xsl] XSL and ASP
You can use the asp namespace, you just need to declare it... put the
following in your xsl:stylesheet element:
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
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.
Target 100 Systems Ltd
>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