I'm sorry for a very rudimentary question ...
I am studying with a book for getting started with XML, and I am trying to convert the sample xml with xsl for the first time. I would appreciate it if you could tell me what was the problem.

Error message

xml cannot be converted to xsl

com.sun.org.apache.xalan.internal.xsltc.compiler.CompilerException: Input document
Is not a stylesheet (the XSL namespace is declared in the root element

Error Transforming XML
At the beginning of the style sheet, you must write a 'xsl: stylesheet' or 'xsl: transform' element or a literal result element with the 'xsl: version' attribute. The prefix 'xsl' indicates the 'http://www.w3.org/1999/XSL/Transform' namespace.

Applicable source code

Passenger car


Open car

xmlns: xsl = "http://www.w3c.org/1999/XSL/Transform">

The description of xml and xsl itself is exactly the same as that of the book, and since the style sheet element is described at the beginning of xsl, it does not seem to correspond to the error message of XML NotePad. I tried xml editors other than XML NotePad, but the message was almost the same and could not be resolved.