G
Greg Collins [Microsoft MVP]
I have a site that uses a custom 404 error page to perform URL Rewriting. This works excellent for all my needs except for one area.
When transforming XML, I have some XSLT code that uses the document() function to load some dynamic XML from a SQL database via an ASP.NET page. I am able to get this to work by calling the rewritten URL via an HTTP call--for example: document('http://site/fakefile.xml"). For a while now I have been trying to figure out how to get the XSL transform function document() to load a file via the URL Rewriting so I don't have to make an HTTP call for it.
Any ideas?
On a side note, loading this redirected XML via an HTTP call causes the page to show up in the logs differently than if I had an actual file that I was loading--for example: document('/folder/actualfile.xml'). I don't know the correct terminology, but there appears to be a primary visit that gets recorded, and then all the sub-calls from that page (i.e. loading images, etc), which are logged differently. These sub calls don't show up in my server stats pages, while the primary visits do. Not sure if what I'm trying to do will make a difference in this.
When transforming XML, I have some XSLT code that uses the document() function to load some dynamic XML from a SQL database via an ASP.NET page. I am able to get this to work by calling the rewritten URL via an HTTP call--for example: document('http://site/fakefile.xml"). For a while now I have been trying to figure out how to get the XSL transform function document() to load a file via the URL Rewriting so I don't have to make an HTTP call for it.
Any ideas?
On a side note, loading this redirected XML via an HTTP call causes the page to show up in the logs differently than if I had an actual file that I was loading--for example: document('/folder/actualfile.xml'). I don't know the correct terminology, but there appears to be a primary visit that gets recorded, and then all the sub-calls from that page (i.e. loading images, etc), which are logged differently. These sub calls don't show up in my server stats pages, while the primary visits do. Not sure if what I'm trying to do will make a difference in this.