Click here to Skip to main content
12,689,305 members (28,048 online)

.NET Framework

 
QuestionGoogle Maps Pin
rongqu23-Jan-13 5:31
memberrongqu23-Jan-13 5:31 
AnswerRe: Google Maps Pin
Pete O'Hanlon23-Jan-13 6:41
protectorPete O'Hanlon23-Jan-13 6:41 
AnswerRe: Google Maps Pin
Sandeep Mewara23-Jan-13 9:28
mvpSandeep Mewara23-Jan-13 9:28 
QuestionArray as perameter to store procedure or function Pin
fareedafarhan22-Jan-13 5:43
memberfareedafarhan22-Jan-13 5:43 
SuggestionRe: Array as perameter to store procedure or function Pin
markovl22-Jan-13 23:27
membermarkovl22-Jan-13 23:27 
QuestionLoading dll and resources from wrong folder Pin
marca29221-Jan-13 2:58
membermarca29221-Jan-13 2:58 
AnswerRe: Loading dll and resources from wrong folder Pin
Alan N21-Jan-13 3:33
memberAlan N21-Jan-13 3:33 
GeneralRe: Loading dll and resources from wrong folder Pin
marca29221-Jan-13 4:47
membermarca29221-Jan-13 4:47 
AnswerRe: Loading dll and resources from wrong folder Pin
Alan N21-Jan-13 6:12
memberAlan N21-Jan-13 6:12 
GeneralRe: Loading dll and resources from wrong folder Pin
Eddy Vluggen21-Jan-13 6:29
mvpEddy Vluggen21-Jan-13 6:29 
GeneralRe: Loading dll and resources from wrong folder Pin
marca29221-Jan-13 22:30
membermarca29221-Jan-13 22:30 
QuestionSystem.Runtime.InteropServices.COMException Pin
AnneThorne20-Jan-13 14:43
memberAnneThorne20-Jan-13 14:43 
AnswerRe: System.Runtime.InteropServices.COMException Pin
AnneThorne20-Jan-13 18:38
memberAnneThorne20-Jan-13 18:38 
QuestionMS XSLT .NET Extension Function NameSpaces Pin
dshcs20-Jan-13 3:06
memberdshcs20-Jan-13 3:06 
I am developing a dynamic XPATH function for a MS XSLT transform. I am running the transform under a VB.NET (4.5) wrapper:

Public Function evaluate1(Context As XPathNodeIterator, Expression As String) As XPathNodeIterator
  Context.MoveNext()
  Dim nsXmlNamespaceManager As XmlNamespaceManager
  nsXmlNamespaceManager = New XmlNamespaceManager(Context.Current.NameTable)
  Return Context.Current.Select(Expression, nsXmlNamespaceManager)
End Function


The document to transform is XHTML with:

<!DOCTYPE html SYSTEM "file:C:/..path../parse1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">


The XSLT document has:

<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:msxsl="urn:schemas-microsoft-com:xslt"
  xmlns:vb="urn:vb-script:xslt"
  xmlns:http="http://www.w3.org/1999/xhtml"


I can successfully use XPATHs with the http namespace from the XSLT, but not in the function code's Select method.

Within the XSLT, the function is used as

<xsl:value-of select="name(vb:evaluate(., '/http:html[1]'))"/>


The function works with unqualified elements (no http: ), but if the namespace is used the "Namespace prefix 'http' is not defined." error is caught. I listed the contents of nsXmlNamespaceManager and see

xmlns=http://www.w3.org/2000/xmlns/
xml=http://www.w3.org/XML/1998/namespace

I know I should be able to add a namespace to the nsXmlNamespaceManager, but that would not be a general solution. It would seem logical to find the @xmlns:* attributes on the XSLT and add those to nsXmlNamespaceManager (assuming I could pass a reference to some XSLT object that would allow me to navigate to the xsl:stylesheet node (or pass a nodeset of those attributes to the function)).

Anyway, the search results on this subject are getting a little thin and I wanted to know if anyone had ventured down this path before and what they did?
AnswerRe: MS XSLT .NET Extension Function NameSpaces Pin
dshcs21-Jan-13 10:48
memberdshcs21-Jan-13 10:48 
QuestionInconsistent Test Results Pin
AnalogNerd18-Jan-13 6:21
memberAnalogNerd18-Jan-13 6:21 
AnswerRe: Inconsistent Test Results Pin
AnalogNerd18-Jan-13 6:55
memberAnalogNerd18-Jan-13 6:55 
QuestionHow can I learn about under the hood of .NET? Pin
atoi_powered16-Jan-13 23:40
memberatoi_powered16-Jan-13 23:40 
AnswerRe: How can I learn about under the hood of .NET? Pin
Pete O'Hanlon17-Jan-13 0:08
protectorPete O'Hanlon17-Jan-13 0:08 
GeneralRe: How can I learn about under the hood of .NET? Pin
atoi_powered17-Jan-13 1:55
memberatoi_powered17-Jan-13 1:55 
GeneralRe: How can I learn about under the hood of .NET? Pin
Pete O'Hanlon17-Jan-13 2:02
protectorPete O'Hanlon17-Jan-13 2:02 
AnswerRe: How can I learn about under the hood of .NET? Pin
savbace17-Jan-13 0:58
membersavbace17-Jan-13 0:58 
GeneralRe: How can I learn about under the hood of .NET? Pin
atoi_powered17-Jan-13 1:58
memberatoi_powered17-Jan-13 1:58 
AnswerRe: How can I learn about under the hood of .NET? Pin
Jonathan C Dickinson17-Jan-13 4:16
memberJonathan C Dickinson17-Jan-13 4:16 
GeneralRe: How can I learn about under the hood of .NET? Pin
atoi_powered17-Jan-13 14:05
memberatoi_powered17-Jan-13 14:05 
AnswerRe: How can I learn about under the hood of .NET? Pin
Abhinav S17-Jan-13 18:12
mvpAbhinav S17-Jan-13 18:12 
AnswerRe: How can I learn about under the hood of .NET? Pin
Rahul Rajat Singh21-Jan-13 2:09
mvpRahul Rajat Singh21-Jan-13 2:09 
AnswerRe: How can I learn about under the hood of .NET? Pin
Eddy Vluggen21-Jan-13 14:39
mvpEddy Vluggen21-Jan-13 14:39 
Questiona question about how .NET apps dealing with filesystem failing Pin
alexyxj15-Jan-13 23:07
memberalexyxj15-Jan-13 23:07 
AnswerRe: a question about how .NET apps dealing with filesystem failing Pin
Richard MacCutchan15-Jan-13 23:40
mvpRichard MacCutchan15-Jan-13 23:40 
GeneralRe: a question about how .NET apps dealing with filesystem failing Pin
alexyxj15-Jan-13 23:49
memberalexyxj15-Jan-13 23:49 
GeneralRe: a question about how .NET apps dealing with filesystem failing Pin
Richard MacCutchan16-Jan-13 0:33
mvpRichard MacCutchan16-Jan-13 0:33 
GeneralRe: a question about how .NET apps dealing with filesystem failing Pin
Pete O'Hanlon16-Jan-13 0:46
protectorPete O'Hanlon16-Jan-13 0:46 
AnswerRe: a question about how .NET apps dealing with filesystem failing Pin
jschell16-Jan-13 10:00
memberjschell16-Jan-13 10:00 
AnswerRe: a question about how .NET apps dealing with filesystem failing Pin
alexyxj16-Jan-13 21:29
memberalexyxj16-Jan-13 21:29 
GeneralRe: a question about how .NET apps dealing with filesystem failing Pin
krunal38017-Jan-13 20:28
memberkrunal38017-Jan-13 20:28 
QuestionGet description from Public Enum Pin
byka15-Jan-13 10:21
memberbyka15-Jan-13 10:21 
AnswerRe: Get description from Public Enum Pin
jibesh15-Jan-13 10:29
memberjibesh15-Jan-13 10:29 
AnswerRe: Get description from Public Enum Pin
Bernhard Hiller15-Jan-13 21:34
memberBernhard Hiller15-Jan-13 21:34 
AnswerRe: Get description from Public Enum Pin
Eddy Vluggen16-Jan-13 3:37
mvpEddy Vluggen16-Jan-13 3:37 
QuestionMisunderstanding XML Pin
Gary Heath15-Jan-13 0:44
memberGary Heath15-Jan-13 0:44 
AnswerRe: Misunderstanding XML Pin
Alan Balkany16-Jan-13 5:11
memberAlan Balkany16-Jan-13 5:11 
AnswerRe: Misunderstanding XML Pin
jschell16-Jan-13 10:07
memberjschell16-Jan-13 10:07 
AnswerRe: Misunderstanding XML Pin
SledgeHammer0121-Jan-13 12:06
memberSledgeHammer0121-Jan-13 12:06 
Question[vb.net] Minimize Prompt Pin
barabba200514-Jan-13 6:31
memberbarabba200514-Jan-13 6:31 
AnswerRe: [vb.net] Minimize Prompt Pin
ProgramFOX14-Jan-13 8:08
member ProgramFOX14-Jan-13 8:08 
GeneralRe: [vb.net] Minimize Prompt Pin
barabba200515-Jan-13 1:42
memberbarabba200515-Jan-13 1:42 
GeneralRe: [vb.net] Minimize Prompt Pin
Dave Kreskowiak15-Jan-13 5:22
mvpDave Kreskowiak15-Jan-13 5:22 
AnswerRe: [vb.net] Minimize Prompt Pin
Alan N15-Jan-13 7:01
memberAlan N15-Jan-13 7:01 
Questionread an excel file Pin
xnaLearner14-Jan-13 5:38
memberxnaLearner14-Jan-13 5:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.170113.4 | Last Updated 16 Jan 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid