Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
06-14-2014, 09:01 PM #1
- Join Date
- Jun 2014
- Thanked 0 Times in 0 Posts
Need help on xslt-html transformation.
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?
06-17-2014, 09:21 PM #2
- Join Date
- Jan 2011
- Thanked 734 Times in 732 Posts
The only thing I can think of is to check this address
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.
Soon to not be a resident of Missouri - hitting the road for better pastures.