|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
||||
|
||||
|
My question is:
We have an .asp application that has initializes xml and xsl to output content in html for browsing on the internet. Everything is working properly with the output in "real time" when a browser causes the xml/xsl to be parsed. Do you know of a solution that would actually save a copy of the resulting html pages this giving a "copy" for redistribution? Thanks again in advance for your help! mr... |
|
#2
|
|||
|
|||
|
Are you wanting to automate this? The easiest way is to hit the page, go to view source, and save the result.
If you've got images, just use your browser to save the page, and it will save the html w/ images. If you're wanting to automate the procedure, there are standalone xsl transformers that you can run from a commandline, but those will only work if you don't have any logic in your .asp that you need to duplicate. You can also use something like wget from the command line to grab the .asp output (+ any images if you want) and save the output to a file.
__________________
-james |
|
#3
|
||||
|
||||
|
It is using asp and msxml. Thanks to both of you.
bricker42 - It is a multipage website (actually a course in real life) that i need to render as html with the links and all working. Then I could copy and paste the images and files into a folder and send out the course. |
|
#4
|
|||
|
|||
|
Use wget. http://www.gnu.org/software/wget/wget.html (There are links to windows versions from there).
Your command line would look something like: wget -r -k -p http://your/asp/file what the options do: -r : recursive web suck, so it will get the whole site -k : convert absolute links to relative, so that all the links work -p : get all page requisites (images, etc) If your html pages are getting downloaded with .asp extensions, you can use the -E option to make all text/html pages have a .html extension. This will give you a directory structure that you can zip up and move whereever. |
|
#5
|
||||
|
||||
|
Sweet! I will take a look ASAP!
mr... |
|
#6
|
||||
|
||||
|
bricker - have you ever passed any parameters to the http://your/asp/file.asp?field1=value&field2=value
The site requires a few parameters to initialy render the html properly. |
|
#7
|
|||
|
|||
|
That should work fine. I don't think you can send form parameters (and if your site requires form interaction or javascript, wget isn't going to get everything), but you can send parameters through the query string just fine.
|
|
#8
|
||||
|
||||
|
I am having a heck of a time finding and instaling a windows version of the wget. I seem to find what says is a Win32 version but the installation instructions and files all are for UNIX. I hate to bother you but could you help me out here?
|
|
#9
|
|||
|
|||
|
Well, here's the url for where I got mine.
http://www.weihenstephan.de/~syring/win32/UnxUtils.html It's not just wget, though. It's a whole bunch of common unix utilties for windows. They're really useful, though . |
|
#10
|
||||
|
||||
|
Great I got it and it seems to be connecting but I don't know how to give it a download folder.
|
|
#11
|
||||
|
||||
|
scratch that i figured out how to get the directory path but it says permission denied. I will have to keep looking about the permission denied message.
|
|
#12
|
|||
|
|||
|
By default it should download to wherever you run the executable from.
Also, for the "permission denied" message: is it telling you it doesn't have permission to access the website, or that it doesn't have permission to write files to disk? |
|
#13
|
||||
|
||||
|
good question. It doesn't define which is having the problem. But it is the last step and it does appear to seccuessfully read the website. That leads me to belive it can't write to the directory i chose which happens to be on my loocal C:\ and I am an adminsitator.
|
|
#14
|
|||
|
|||
|
Well, the only thing I can think of is to make sure the directory you're trying to write to isn't write protected. I haven't come across anything like this before.
|
|
#15
|
||||
|
||||
|
thanks man I will keep looking.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Output HTML to File from XML/XSL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|