473,490 Members | 2,488 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Using XmlSecureResolver.CreateEvidenceForUrl?

I am having trouble getting a transformation to work. Basic
transformation
works locally - i.e. if I have the XSL on a local system it all works
as it
should. My XSLT uses references another external XML document.

When I move the XSLT to a UNC it stops pulling in nodes from an
external
XML, using a 'document' reference in the XSLT. The 1.1 framework seems
to
deal with this in a slightly different (more secure) way, which is
described
here....

http://msdn.microsoft.com/library/de...tprocessor.asp

So, here is what I did:

Dim evidence As Security.Policy.Evidence =
XmlSecureResolver.CreateEvidenceForUrl("\\someserv er\d$\WWWROOT\Portal\sp2\X
SL\")
xslt.Load(New
XmlTextReader("\\someserver\d$\WWWROOT\Portal\sp2\ XSL\newsletter_html.xsl"),
New XmlUrlResolver, evidence)

When I do the transform, it actually does work, but it doesn't pull in
the
external reference. So, my guess on reading the first link is that I
need to
make a policy change somewhere - but I have no idea what or where.

Any insights much appreciated!

Rene
Nov 12 '05 #1
2 1867
redevries wrote:

So, here is what I did:

Dim evidence As Security.Policy.Evidence =
XmlSecureResolver.CreateEvidenceForUrl("\\someserv er\d$\WWWROOT\Portal\sp2\X
SL\")
xslt.Load(New
XmlTextReader("\\someserver\d$\WWWROOT\Portal\sp2\ XSL\newsletter_html.xsl"),
New XmlUrlResolver, evidence)

When I do the transform, it actually does work, but it doesn't pull in
the
external reference. So, my guess on reading the first link is that I
need to
make a policy change somewhere - but I have no idea what or where.


Above only helps to resolve URLs during loading XSLT stylesheet
(xsl:include/xsl:import).
document() function is called later - at transformation time, so you
have to proivide similar resolver and evidence to Transform() method too.

--
Oleg Tkachenko [XML MVP]
http://blog.tkachenko.com
Nov 12 '05 #2
redevries wrote:

So, here is what I did:

Dim evidence As Security.Policy.Evidence =
XmlSecureResolver.CreateEvidenceForUrl("\\someserv er\d$\WWWROOT\Portal\sp2\X
SL\")
xslt.Load(New
XmlTextReader("\\someserver\d$\WWWROOT\Portal\sp2\ XSL\newsletter_html.xsl"),
New XmlUrlResolver, evidence)

When I do the transform, it actually does work, but it doesn't pull in
the
external reference. So, my guess on reading the first link is that I
need to
make a policy change somewhere - but I have no idea what or where.


Above only helps to resolve URLs during loading XSLT stylesheet
(xsl:include/xsl:import).
document() function is called later - at transformation time, so you
have to proivide similar resolver and evidence to Transform() method too.

--
Oleg Tkachenko [XML MVP]
http://blog.tkachenko.com
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5870
by: rawCoder | last post by:
Hi All, I have a *.cer file, a public key of some one and I want to encrypt some thing using this public key. Can someone point me to a sample code for Encrypting some file using...
1
567
by: Mike | last post by:
When trying to compile (using Visual Web Developer 2005 Express Beta; frameworkv2.0.50215 ) the source code below I get errors (listed below due to the use of ICallBackEventHandler. Ultimately I...
10
2626
by: Christopher Benson-Manica | last post by:
Why can't I use a class destructor in a using declaration: using MyClass::~MyClass; ? -- Christopher Benson-Manica | I *should* know what I'm talking about - if I ataru(at)cyberspace.org ...
17
3477
by: beliavsky | last post by:
Many of my C++ programs have the line using namespace std; but the "Accelerated C++" book of Koenig and Moo has many examples where the library names are included one at a time, for example ...
8
4889
by: Petter Reinholdtsen | last post by:
I ran into a problem on HP-UX 11.00 the other day, where it refused to compile a program using 'using namespace std;' at the top. The reason seem to be that the compiler refuses to accept 'using...
14
2119
by: john.burton.email | last post by:
I've done some extensive searching and can't seem to find an answer to this - Is it correct to using "using" with templates, for example: using std::vector; Or do I need to specify the type...
5
5681
by: Enos Meroka | last post by:
Hallo, I am a student doing my project in the university.. I have been trying to compile the program using HP -UX aCC compiler, however I keep on getting the following errors. ...
2
1948
by: Matt Frame | last post by:
I have a problem with the XslTransform looking as though it is not using my custom XslResolver. My customer resolver has been working fine until I tried to use the following in my style-sheet: ...
0
333
by: redevries | last post by:
I am having trouble getting a transformation to work. Basic transformation works locally - i.e. if I have the XSL on a local system it all works as it should. My XSLT uses references another...
0
7108
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7142
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7181
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6847
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7352
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4875
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1383
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
618
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
272
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.