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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T08:07:17+00:00 2026-06-16T08:07:17+00:00

I need to copy all info from my xml file (actually i need to

  • 0

I need to copy all info from my xml file (actually i need to add new info into my xml file).

I use standart template :

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="@*|node()">
        <xsl:copy>
            <xsl:apply-templates select="@*|node()" />
        </xsl:copy>
    </xsl:template>
</xsl:stylesheet>

and I write test xml file :

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE products SYSTEM "products.dtd" >
    <?xml-stylesheet type="text/xsl" href="../xsl/copy.xsl"?>
    <products>
        <category name="Audio And Video">
            <subcategory name="Audio">
                <good>
                    <producer>Dell</producer>
                    <model>QQ678</model>
                    <color>White</color>
                    <date_of_issue>12-12-2012</date_of_issue>
                    <not_in_stock>true</not_in_stock>
                </good>
            </subcategory>
            <subcategory name="Video">
                <good>
                    <producer>Samsung</producer>
                    <model>VH500</model>
                    <color>Black</color>
                    <date_of_issue>12-12-2006</date_of_issue>
                    <price>200</price>
                </good>
                <good>
                    <producer>Toshiba</producer>
                    <model>GP436</model>
                    <color>White</color>
                    <date_of_issue>12-12-2004</date_of_issue>
                    <not_in_stock>true</not_in_stock>
                </good>
            </subcategory>
        </category>
        <category name="Computers">
            <subcategory name="Pocket">
                <good>
                    <producer>HP</producer>
                    <model>rx371</model>
                    <color>Black</color>
                    <date_of_issue>31-01-2006</date_of_issue>
                    <not_in_stock>true</not_in_stock>
                </good>
            </subcategory>
        </category>
</products>

And when i open this xml file in browser I think I will see the same xml file but it displays me: enter image description here

so where I made mistake. Please help me please to solve my problem

  • 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-16T08:07:19+00:00Added an answer on June 16, 2026 at 8:07 am

    Your style sheet does nothing except copy the input to the output. As far as can be told from the browser output, it is doing that correctly. There is no problem in evidence here. Try outputting some HTML instead of just copying.

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

Sidebar

Related Questions

Using SQLite I need to copy nearly all of an existing row from a
I need to copy a jar file from one directory to another when my
I need to copy all lines in a file matching a pattern to a
I need to copy all keys and values from one A HashMap onto another
I am trying to copy data from an old database into a new one,
I need to copy all *.exe files in some directory to other virtual drive
I need to copy two linked lists recursively and return a new list .
I need to copy a table from one server to another.for that I have
I need to retrieve RAM info from both local and remote computers, I am
I'm new to VBScript. I cannot find a way to copy files from one

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.