On Sat, 28 Aug 2004 11:41:40 +0800 <Tang.Tony@iac.com.tw> wrote: > > Dear all: > > I use Amaya 8.5 to browse a local xhtml file, but Amaya don't get the right css file, it uses the default css. > What is the problem? What should I do to let Amaya get the local css file? > > In the function CheckCSSLink() > > /* Load that style sheet */ > attrType.AttrTypeNum = HTML_ATTR_HREF_; > attr = TtaGetAttribute (el, attrType); > if (attr && > DocumentMeta[doc] && DocumentMeta[doc]->method != CE_MAKEBOOK) > { > length = TtaGetTextAttributeLength (attr); > buff = (char*)TtaGetMemory (length + 1); > TtaGiveTextAttributeValue (attr, buff, &length); > /* get the CSS URI in UTF-8 */ > buff = ReallocUTF8String (buff, doc); > /* load the stylesheet file found here ! */ > if (buff) > { > LoadStyleSheet (buff, doc, el, NULL, media, FALSE); > TtaFreeMemory (buff); > } > } > > the return value attr is null. So Amaya can't get the right css file. Check if the document is correct. When the attr is null, there is no attribute generated by the parser. > > A lot of thanks! > > Best regards > > Tony Tang > Tel:021-64853668-2112 > > Irene. ----- Irène Vatton INRIA Rhône-Alpes INRIA ZIRST e-mail: Irene.Vatton@inria.fr 655 avenue de l'Europe Tel.: +33 4 76 61 53 61 Montbonnot Fax: +33 4 76 61 52 07 38334 Saint Ismier Cedex - FranceReceived on Monday, 30 August 2004 14:42:42 UTC
This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:30:45 UTC