473,320 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Problem with XslTransform using XmlResolver

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:

<xsl:variable name="codesFile"
select="document('D:\SorviveApps\XSL\RSNT_EDI_Xref .xml')" />

It seems as though the above statement is ignored even though I can see the
document path come through the customer resolver and no errors are
generated. The file is never brought in as the cross reference codes never
appear. This process works find in XML Spy just not when VB.Net is used to
perform the translation. The original XSL is loaded from a string brought
in from SQL Server but no errors are produced during the XSL.Load either.
Does anyone have any ideas how to get better visibility to what is going
wrong or how to do this?

Thanks,

Matt
Nov 11 '05 #1
2 1940
Hi Matt,

Can you post the VB.NET code and XML file you used? More details may help
us understand the problem, and find what the problem is.

Thanks,

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 11 '05 #2
Hi Matt,

based on my test, the problem is related to the evidence, for example,
following code will return correct result:
Dim evidence As Evidence =
XmlSecureResolver.CreateEvidenceForUrl("c:\temp")

xsl.Load(New XmlTextReader("c:\temp\documentTest.xsl"), New
XmlUrlResolver, evidence)

xsl.Transform(xml, Nothing, ms, New XmlUrlResolver)

ms.Position = 0

strResult = sr.ReadToEnd.ToString

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 11 '05 #3

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

Similar topics

2
by: Anthony Bouch | last post by:
Can anyone tell me why I receive the following compiler warning after having recently upgraded to VS.Net 2003 and .Net 1.1? Warning CS0618: 'System.Xml.Xsl(System.Xml.XPath.IXPathNavigable,...
2
by: Graham Pengelly | last post by:
Hi I am trying to transform on System.Xml.XmlDocument into another using XslTransform without writing the object out to a file. I am guessing it should work something like this... public...
3
by: Steve | last post by:
Is there any way of specifying the startMode when using the xslTransform class? We are updating code which used msxml to the system.xml classes but can find no way to specify the startMode. We...
0
by: Tod Johnson | last post by:
Hello again, Does it mean that nobody knows the answer? :( ----------------------------------- not so long I've found really strange bug in the .NET. It seems that Evidence that I've got from...
4
by: Mike Schilling | last post by:
In 1.0, there was a method call: XslTransform.Load(IXPathNavigable, XmlResolver) In 1.1, compiling a call to it gives a warning that this signature is obsolete and evidence should be suppied,...
1
by: manlio | last post by:
how can I load a XSL string (not an xsl file!!) with XslTransform ??? If I use the code: // Create a new XslTransform class and load the stylesheet XslTransform myXslTransform = new...
1
by: TomislaW | last post by:
I am using XslTransform.Transform method to transform xml to html. In html I get: <?xml version="1.0" encoding="utf-8"?> tag before transformed html, how to get rid of this tag? Also I have...
2
by: Mr Flibble | last post by:
Hi All I've decided to put my stylesheets in a base64 .resource file for deployment and versioning reasons. I dont know if it's a great idea to do this but I couldn't think of another way of...
12
by: InvalidLastName | last post by:
We have been used XslTransform. .NET 1.1, for transform XML document, Dataset with xsl to HTML. Some of these html contents contain javascript and links. For example: // javascript if (a &gt; b)...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.