xml - Namespace Prefix 'xsl' is not defined

I am a newbie in xml use.and trying to write some code

1) Want does Namespace Prefix 'xsl' is not defined mean?

2) what is the difference between,  xmlns:xsd="http://www.w3.org/1999/xmlschema> and xmlns:xsd="http://www.w3.org/2001/xmlschema>

3) How to convert xmlns:xsd="http://www.w3.org/1999/xmlschema> to xmlns:xsd="http://www.w3.org/2001/xmlschema>

Thanks
ddd1234Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Geert BormansInformation ArchitectCommented:
1)
An XSLT schould have an binding to indicate that the xsl: prefix belongs to the xslt stylesheet namespace

<xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
0
Geert BormansInformation ArchitectCommented:
2)
You should use the schema namespace as such
http://www.w3.org/2001/XMLSchema

I assume the other is referring to an old draft but has no "special" status
0
Geert BormansInformation ArchitectCommented:
3)
The clean way would be to use an XSLT to swap the namespace,
but you might as well read the text stream of the schema in any programming languag (make sure you don't mess up the encoding) and regex the 1999 into 2001
0
ddd1234Author Commented:
Thanks,  This what I have currently
<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

Instead - I should use

SchemaVersion="2.0"   xmlns:xsl="http://www.w3.org/2001/XSL/Transform" xmlns:xsl="http://www.w3.org/2001/XSL/Transform" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

Also can I copy and paste the earlier code in newer version?

Thanks
0
Geert BormansInformation ArchitectCommented:
Can you phrase your questions somewhat more clear?
This is all really vague
If I look at what you need in the output you bind the xsl prefix twice, that is not allowed

I think you are running a processnot just validation
and I think that in your process you are using an XML as an XSLT for a transform,
but you are referencing a file that is not an XSLT
You can not patch it by adding the namespace, you need to reference the right XSLT

But all of this is guessing against the wind.
Please tell us what you are trying to achieve,
give us some context, some source XML files and an indication of the tools you are using so we can really help you
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
XML

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.