Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need help on xslt-html transformation.

    Hi all,

    I'm new here and to coding. I'm trying to use xslt to make an xhtml page out of an xml document. Here is the header of the xml I'm given:

    <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>

    So I have add the link to the xslt document I have coded as follows:

    <?xml-stylesheet type="text/xsl" href="C:\Users\Jon\Documents\Oficina\Modulo_DAM\Lenguajes_de_marcas\LM.Tarea5.1\LM-Tarea5.1.Esquema.xsl"?>


    But when I put the code on the editor "editix" I have the following error message: "The prefix "xsl" for element "xsl:stylesheet" is not bound."

    On the xslt document I had this header:

    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <xsl:stylesheet version="1.0" xmnls:xsl="http://www.w3.org/1999/XSL/Transform" >

    On which I have deleted the first row so the <xsl> element is the first one but it still gives me the same error.

    On every page I have read and on the examples from the course I'm on, the coding is as I'm doing and nothing seems to be wrong but I guess I'm missing something.

    Does anyone know where is the problem?

    Many thanks.

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,300
    Thanks
    23
    Thanked 612 Times in 611 Posts
    The only thing I can think of is to check this address
    href="C:\Users\Jon\Documents\Oficina\Modulo_DAM\Lenguajes_de_marcas\LM.Tarea5.1\LM-Tarea5.1.Esquema.xsl"
    Make sure this is where the style sheet is located. If the xml and the xsl are located in the same spot you could just use <?xml-stylesheet type="text/xsl" href="LM-Tarea5.1.Esquema.xsl"?>
    which is what I do.
    Evolution - The non-random survival of random variants.

    "If you leave hydrogen alone, for long enough, it begins to think about itself."


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •