Problem executing XML code using XSL

Beginner

Beginner

@beginner-5onRAV Oct 22, 2024
I wrote my first XML code using XSL. But a problem has encountered when I am trying to execute it. It is displaying the error as
error on line 1 at column 64:XML declaration allowed only at the start of the document
And the first 2 lines of my code are as follows,
<?xml version = "1.0"?>
<?xml:stylesheet type="text/xsl" href="frstxs.xsl"?>
Please help me out 😕..

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • simplycoder

    simplycoder

    @simplycoder-NsBEdD Aug 2, 2012

    Beginner
    I wrote my first XML code using XSL. But a problem has encountered when I am trying to execute it. It is displaying the error as

    And the first 2 lines of my code are as follows,
    <?xml version = "1.0"?>
    <?xml:stylesheet type="text/xsl" href="frstxs.xsl"?>
    
    Please help me out 😕..
    check if there is some space before your first tag.
    or if there are multiple declarations of <?xml version = "1.0"?>.

    This is just a wild guess, if this doesnt work then I think your code will help us in detecting the problem.
  • shazywie71

    shazywie71

    @shazywie71-OvErrR Aug 3, 2012

    have you tried running it through a validation tool? try #-Link-Snipped-#to check if your code is correct.