**Help! Why is XSL cached in ASP.NET app?

D

Don

Hi:

Anything I can change in VS.NET or IIS to get changes from and XSL
stylesheet to show immediately without rebuilding?

I have an ASP.NET application to with one page that renders XML/XSLT.
The initial purpose was to have the page setup, then make any changes to an
XSL file and have the changes immediately rendered on a browser refresh,
WITHOUT Rebuilding the project.

Thanks,

Don
 
S

Scott G.

I've had this happen before when I was changing an XSLT file that was included in the XSLT transform that I set for the control. If you do something update the write time of the XSLT file just before you assign it to the TransformSource of the Xml control if might then refresh.

If that doesn't work, you might consider writing your own Xml control; it's a pretty trivial control.

Scott
Hi:

Anything I can change in VS.NET or IIS to get changes from and XSL
stylesheet to show immediately without rebuilding?

I have an ASP.NET application to with one page that renders XML/XSLT.
The initial purpose was to have the page setup, then make any changes to an
XSL file and have the changes immediately rendered on a browser refresh,
WITHOUT Rebuilding the project.

Thanks,

Don
 
T

Teemu Keiski

I already replied on the previous thread:

***********************
Hi,

are you using built-in XML control? It does some caching if you set the
stylesheet via TransformSource property or document via DocumentSource
property.

If you do use it, you can get over it by providing the XslTransform class
yourself for the XML control (almost the same as then just making the
transform manually) or instead of providing files, by providing the XML via
Document (XmlDocument) an or DocumentContent properties.

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke
***************************
 
D

Don

I found the problem; and a hack. When changing the main XSLT, the changes
are immediately rendered. If changes are made in XSL files that are
included from the main, they will not show up.

The get around this. Anytime you make a change in a dependent XSL file,
resave the main one; and all changes will appear.

Do
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,149
Latest member
Vinay Kumar Nevatia0
Top