Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 91685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:04:07+00:00 2026-05-10T23:04:07+00:00

I need to parse Visual Studio automatically generated XML documentation to create a report.

  • 0

I need to parse Visual Studio automatically generated XML documentation to create a report. I decided to use XSLT but I’m very new to it and need help. Common template is:

<doc>   <members>     <member name='F:MyNamespace'>       <summary>Some text</summary>     </member>    </members> </doc> 

I want to isolate members with name which begins on some word, for example, P:Interfaces.Core. I decided to use RegExp in select statement.

<?xml version='1.0' encoding='utf-8'?> <xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'         xmlns:fn='http://www.w3.org/TR/xpath-functions/'>     <xsl:template match='/' >         <html xmlns='http://www.w3.org/1999/xhtml'>             <body style='font-family:Tahoma'>                 <p>Interfaces list:</p>                 <table>                     <xsl:for-each select='doc/members/member'>                         <xsl:sort order='ascending' />                         <xsl:value-of select='fn:matches(., 'P\..+')' />                         <br />                     </xsl:for-each>                 </table>             </body>         </html>     </xsl:template> </xsl:stylesheet> 

Why does I’m getting error:

Namespace http://www.w3.org/TR/xpath-functions does not contain any functions >

Where am I wrong? I found such code in examples, including w3c.org!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T23:04:08+00:00Added an answer on May 10, 2026 at 11:04 pm

    In case you’re performing the transformation with Visual Studio X, where X is not greater than 2008, this would be processed by an XSLT 1.0 processor (.NET’s XslCompiledTransform or XslTransform). XSLT 1.0 uses XPath 1.0, not XPath 2.0 and its F & O (Functions and Operations), which only became a W3 Recommendation last year.

    You have two options:

    1. Use a compliant XSLT 2.0 processor. If you prefer to stay within the .NET platform, then a suitable choice is Saxon.NET

    2. Just use the XPath 1.0 function starts-with(), which is sufficient to solve the current problem.
      The expression: starts-with(., 'P:Interfaces') is evaluated to true() if the string value of the context node starts with the string ‘P:Interfaces’ and to false() otherwise.

    Another Xpath 1.0 function that may come handy for such type of processing is the function contains().

    Xpath’s 2.0 function ends-with() can be emulated in XPath 1.0 in the following way:

    ends-with(s1, s2) ====substring(s1,string-length(s1)-string-length(s2)+1)=s2

    where ‘===‘ means is ‘equivalent to’.

    Here we also used the XPath 1.0 functions substring() and string-length().

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 114k
  • Answers 114k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It appears I have solved the problem myself. I've saved… May 11, 2026 at 10:13 pm
  • Editorial Team
    Editorial Team added an answer It looks like the JNDI properties need to be set… May 11, 2026 at 10:13 pm
  • Editorial Team
    Editorial Team added an answer While I would question your design if you're relying on… May 11, 2026 at 10:13 pm

Related Questions

Ok, this has got to be a super simple problem. I just can't seem
Does anyone know if Visual Studio 2008 has a mechianism in web applications to
I have decided that I really need to get some flowcharts for reverse engineering
Is there a way to compile a .vbproj or .csproj project file directly, just

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.