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

  • Home
  • SEARCH
  • 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 6757063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:36:06+00:00 2026-05-26T13:36:06+00:00

I was testing out XSLT identity transform and so I randomly chose the following

  • 0

I was testing out XSLT identity transform and so I randomly chose the following example on http://www.w3schools.com because it allows me to try online:

http://www.w3schools.com/xsl/tryxslt.asp?xmlfile=cdcatalog&xsltfile=cdcatalog_apply

I changed the XSLT in the right pane to be identity transform:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Edited by XMLSpy® -->
<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 tried it out. What I found was that the /catalog/cd/title nodes do not get copied into the output (but everything else does). If I change the name from /catalog/cd/title to /catalog/cd/title1 (or any other name) it does copy the node.

So I was wondering if there is just a bug in the XSLT implementation on http://www.w3schools.com or if there is some special significance to the XML node ‘title’ that causes it to not get copied? I’m planning on using the XSLT transform as described above, but I want to make sure I’m aware of any gotchas…

  • 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-05-26T13:36:06+00:00Added an answer on May 26, 2026 at 1:36 pm

    That w3schools tool is useful for testing XML to HTML transformation as it tries to render the transformation result as HTML in the browser. With your identity transformation you do not create any HTML but rather XML. Only the “title” element in the transformation result looks to the browser as a known but wrongly placed HTML element so it does not display it in the page. All other elements are unknown so their text contents is rendered.

    Basically get yourself a standalone XSLT processor or an XML editor, that w3schools tool is not useful to debug and test anything but XML to HTML transformations.

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

Sidebar

Related Questions

I have started to try out noSQL databases now and are currently testing out
I am testing out mod rewrite for my site. I thought i would try
When testing with .. /xsl/sample rendering.xslt ..which is a simple rendering provided out of
I'm testing out my CSS at http://flexibletheme.tumblr.com/ and trying to make the website responsive
Anybody out there have experience testing out of process assemblies? I'm testing some Com+
I am testing out erode and dilate functions in openCV2.2 but compilation fails because
I'm currently testing out retrieving json from jquery. The service url is: http://imgsvc.heroku.com/images In
I'm testing out the billing sample application provided by google: http://developer.android.com/guide/market/billing/index.html Everything is going
Testing out someone elses code, I noticed a few JSP pages printing funky non-ASCII
I've been testing out the performance and memory profiler AQTime to see if it's

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.