1

A web.config file has a following line

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

I tried reading the web.config it in XSLT (Get value from web.config into XSLT file) .I was unsuccessful, and i tried removing the xmlns attribute from the config file and i was able to read it in XSLT without much problem.

Whats the benefit/difference in having in xmlns attribute in web.config file and is it possible to read the config file into xslt with the xmlns attribute in web.config?

Community
  • 1
  • 1
  • Please refer to the question for a similar implementation...http://stackoverflow.com/questions/23826017/get-value-from-web-config-into-xslt-file – user3668393 May 26 '14 at 11:28
  • Show us the code. How are you reading the file? Have you added this namespace to your xpath query, if any, to read the values? – Oscar May 26 '14 at 11:31
  • @Oscar Please see the Link in the edited question for the code i tried to implement – user3668393 May 26 '14 at 11:35

1 Answers1

1

See this similar questions: How to read a node value with namespace, in xslt and c#.

Problem with XSLT getting values from tags with namespace prefixes

How to get an specific node in xml with namespaces?

Community
  • 1
  • 1
Oscar
  • 13,594
  • 8
  • 47
  • 75