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

The Archive Base Latest Questions

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

Never did XSLT before. Is that possible to inherit a doc and replace just

  • 0

Never did XSLT before. Is that possible to inherit a doc and replace just one tag? If yes, can you provide any example please?

Thank you

  • 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-13T09:19:20+00:00Added an answer on June 13, 2026 at 9:19 am

    You start with the template

    <xsl:template match="@* | node()">
      <xsl:copy>
       <xsl:apply-templates select="@* | node()"/>
      </xsl:copy>
    </xsl:template>
    

    then you add templates for transforming the nodes you want to transform e.g.

    <xsl:template match="td">
      <th>
        <xsl:apply-templates select="@* | node()"/>
      </th>
    <xsl:template>
    

    transforms all td elements into th elements or

    <xsl:template match="h6"/>
    

    deletes all h6 elements.

    If you want to transform a single td then you need some way to identify it, assuming it has an id attribute use a match pattern like

    <xsl:template match="td[@id = 'td1']">
      <td style="background-color: lightgreen;">
        <xsl:apply-templates select="@* | node()"/>
      </td>
    </xsl:template>
    

    That sample sets the CSS background-color property of the particular td element.

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

Sidebar

Related Questions

Ok, I understand that maybe very stupid question, but i never did it before,
I have to create a fb application, I never did one before but I
Id like to program a multi-language application with play!. I never did that before
I never did any serious Java coding before, but I learned the syntax, libraries,
I'm a 2nd year ICT student. I never did PHP before this year and
I am new to multilingual data and my confession is that I never did
My software company never did BDD or even TDD before. Testing before meant to
I never did any vbscript before, so i don't know if my question is
what do you prefer for testing JavaScript apps using Cucumber? I never did it
I did a little bit of Web Programming here and there but I never

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.