This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: This file is not well formed.An invalid caracter was found ....


At 04:17 AM 10/12/2000 -0700, Marcos Coelho wrote:
>I made a XSL, and linked it to the XML. But it shows the message on the
>subject : The file (XML) is not well formed. There`s an invalid
>caracter was found

--------------------------  XSL file -------------------------------

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

         (etc.)

>--------------------------  XML file -------------------------------
><!-- edited with XML Spy v3.0.7 (http://www.xmlspy.com) by Marcos
>Coelho (Cosmo On Line) -->
><?xml-stylesheet type="text/xsl" href="Y:\teste\xml\noticias.xsl"?>
>[...snip...]
>aproximadamente US$ 1 bilhão com o Comitê Organizador dos Jogos
---------look here---------^

You did the right thing in your stylesheet, with the encoding of 
iso-8859-1. Now you just add the same XML declaration at the very top of 
your XML document itself, and the well-formed problem goes away.

The stylesheet still probably won't do what you want it to do, but that's a 
subject for another thread. :)

===============================================================
John E. Simpson               | "He asked me if I knew what
http://www.flixml.org         | time it was. I said, 'Yes, but
XML Q&A: http://www.xml.com   | not right now.'" (Steven Wright) 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]