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

RE: XSL and ASP

Subject: RE: XSL and ASP
From: "Luke Ambrogio" <gryzlaw@xxxxxxxxxxx>
Date: Sat, 15 Mar 2003 07:47:48 +0100 (W. Europe Standard Time)
xmlns asp
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 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
____________________________________________________
http://www.incredimail.com/redir.asp?ad_id=309&lang=9  IncrediMail - Email has finally evolved - http://www.incredimail.com/redir.asp?ad_id=309&lang=9
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.