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 9241155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:19:13+00:00 2026-06-18T08:19:13+00:00

I am using Crystal Report 2011 Export using XSLT and cannot use the tag

  • 0

I am using Crystal Report 2011 Export using XSLT and cannot use the tag namespace-alias in the XSLT for some reason.

I have the following XSLT :-

      <xsl:namespace-alias stylesheet-prefix="b" result-prefix="#default"/>

      <xsl:template match="/b:CrystalReport">
        <root>
          <xsl:for-each select="b:Details">
            <person>
              <VRN><xsl:value-of select="b:Section/b:Field[@Name='ITMVEHICLEREGNUM1']/b:FormattedValue"/></VRN>
              <Make><xsl:value-of select="b:Section/b:Field[@Name='ITMMANUDESC1']/b:FormattedValue"/></Make>
              <Model><xsl:value-of select="b:Section/b:Field[@Name='ITMODELDESC1']/b:FormattedValue"/></Model>
              <PolicyNumber><xsl:value-of select="b:Section/b:Field[@Name='POLEXTERNAL11']/b:FormattedValue"/></PolicyNumber>
              <Title><xsl:value-of select="b:Section/b:Field[@Name='TITDESCRIPTION1']/b:FormattedValue"/></Title>
              <FirstName><xsl:value-of select="b:Section/b:Field[@Name='CLIFIRST1']/b:FormattedValue"/></FirstName>
              <LastName><xsl:value-of select="b:Section/b:Field[@Name='CLISURN1']/b:FormattedValue"/></LastName>
              <PostCode><xsl:value-of select="b:Section/b:Field[@Name='ADRPOSTCODE1']/b:FormattedValue"/></PostCode>
              <CoverStartDate><xsl:value-of select="b:Section/b:Field[@Name='POLRENDATE1']/b:FormattedValue"/></CoverStartDate>
              <CoverEndDate><xsl:value-of select="b:Section/b:Field[@Name='POLENDDATE1']/b:FormattedValue"/></CoverEndDate>
              <FullyComp><xsl:value-of select="b:Section/b:Field[@Name='ITMCOVERTYPECDE1']/b:FormattedValue"/></FullyComp>
              <GlassLimit>500</GlassLimit>
              <GlassExcess>75</GlassExcess>
              <VatReg><xsl:value-of select="b:Section/b:Field[@Name='CLIVATREG1']/b:FormattedValue"/></VatReg>
              <AccidentDamageExecess>N/A</AccidentDamageExecess>
              <RepairExcess>0.00</RepairExcess>
              <Insurer><xsl:value-of select="b:Section/b:Field[@Name='INSNAME1']/b:FormattedValue"/></Insurer>
              <Referral><xsl:value-of select="b:Section/b:Field[@Name='CENDESC1']/b:FormattedValue"/></Referral>
            </person>
          </xsl:for-each>
        </root>
      </xsl:template>

    </xsl:stylesheet>

The output looks like :-

    <root xmlns:b="urn:crystal-reports:schemas:report-detail">  
      <person>  
        <VRN>XXXXXX</VRN>  
        <Make>AUSTIN</Make>  
        <Model>A35</Model>  
        <PolicyNumber>XXXXXXXX</PolicyNumber>  
        <Title>Mr</Title>  
        <FirstName>Gareth</FirstName>  
        <LastName>Jones</LastName>  
        <PostCode>AL23 6TR</PostCode>  
        <CoverStartDate>06.04.2011</CoverStartDate>  
        <CoverEndDate>05.04.2012</CoverEndDate>  
        <FullyComp>01</FullyComp>  
        <GlassLimit>500</GlassLimit>  
        <GlassExcess>75</GlassExcess>  
        <VatReg></VatReg>  
        <AccidentDamageExecess>N/A</AccidentDamageExecess>  
        <RepairExcess>0.00</RepairExcess>  
        <Insurer>My Insurer</Insurer>  
        <Referral>Direct</Referral>  
      </person>  
    </root>

I need to be able to remove the namespace from the tag and can only use 1 XSLT to do it.

Any help appreciated.

Thanks
Craig

  • 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. Editorial Team
    Editorial Team
    2026-06-18T08:19:14+00:00Added an answer on June 18, 2026 at 8:19 am

    You don’t need to use namespace-alias here. The result is already in the null namespace, but if you want to suppress the b namespace declaration, you just need to use exclude-result-prefixes:

    <xsl:stylesheet version="1.0" 
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
        xmlns:b="urn:crystal-reports:schemas:report-detail"
        exclude-result-prefixes="b">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have windows application in which i am using crystal report. i use to
I'm using Crystal Report with VB.NET in Visual Studio 2005. I have report that
I have Finished Designing my first Crystal Report using ASP.NET, I am Providing user
I have developed a windows application using .net and crystal report.. Now I want
i have web application in which i am using crystal reports.In main crystal report
I have a .net project using a crystal report. I am using VS2010 and
I am new to Crystal Report and I have a problem I cannot figure
I have developed my application in vs10 using crystal report 13.0.2000.0, my Application works
I have created a crystal report using MySql 5.1, using XML (Dataset save as
I have built a web page which contains a Crystal Report built using the

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.