[Jslib] dtd problem in xul 2

Fco Benavides fco_benavides at yahoo.com
Thu Dec 18 10:29:56 EST 2003


Hi, 

I made changes, but no results, this is what I have:

app structure:
chrome: saadu: content: 
    saadu.xul
    saadu.js (empty, for now)
    contents.rdf
chrome: saadu: skin:
    saadu.css
    contents.rdf
chrome: saadu: locale: sp-MX: saadu:
    logo.png
    saadu.dtd
    contents.rdf

chrome: saadu: content: contents.rdf
<?xml version ="1.0"
      encoding="iso-8859-1"?>
<RDF:RDF xmlns:RDF  
="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        
xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
   <!-- list all the packages being supplied -->
   <RDF:Seq about="urn:mozilla:package:root">
     <RDF:li resource="urn:mozilla:package:saadu"/>
   </RDF:Seq>
   <!-- package information -->
   <RDF:Description about="urn:mozilla:package:saadu"
         chrome:displayName="SAADU"
         chrome:author="saadu.iscnld.com"
         chrome:name="SAADU">
   </RDF:Description>
</RDF:RDF>

chrome: saadu: skin: contents.rdf
<?xml version ="1.0"
      encoding="iso-8859-1"?>
<RDF:RDF
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        
xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
   <RDF:Seq about="urn:mozilla:skin:root">
     <RDF:li resource="urn:mozilla:skin:classic/1.0"
/>
   </RDF:Seq>
   <RDF:Description
about="urn:mozilla:skin:classic/1.0">
     <chrome:packages>
       <RDF:Seq
about="urn:mozilla:skin:classic/1.0:packages">
         <RDF:li
resource="urn:mozilla:skin:classic/1.0:saadu"/>
       </RDF:Seq>
     </chrome:packages>
   </RDF:Description>
</RDF:RDF>

chrome: saadu: locale: sp-MX: saadu: contents.rdf
<?xml version ="1.0"
      encoding="iso-8859-1"?>
<RDF:RDF
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        
xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
   <RDF:Seq about="urn:mozilla:locale:root">
     <RDF:li resource="urn:mozilla:locale:sp-MX"/>
   </RDF:Seq>
   <!-- locale information -->
   <RDF:Description about="urn:mozilla:locale:sp-MX"
         chrome:displayName="Spanish(MX)"
         chrome:author="saadu.iscnld.com"
         chrome:name="sp-MX"
        
chrome:previewURL="http://www.mozilla.org/locales/sp-MX.gif">
     <chrome:packages>
       <RDF:Seq
about="urn:mozilla:locale:sp-MX:packages">
         <RDF:li
resource="urn:mozilla:locale:sp-MX:saadu"/>
       </RDF:Seq>
     </chrome:packages>
   </RDF:Description>
 </RDF:RDF>

chrome: saadu: content: saadu.xul
<?xml version ="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="chrome://global/skin"
type="text/css"?>
<?xml-stylesheet href="chrome://saadu/skin"
type="text/css"?>
<!DOCTYPE window SYSTEM
"chrome://saadu/locale/sp-MX/saadu/saadu.dtd">
<!-- Sample XUL file -->
<window
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
id="saadu-main">
  <script type="application/x-javascript"
src="chrome://global/content/dialogOverlay.js" />
  <script type="application/x-javascript"
src="chrome://jslib/content/jslib.js" />
  <script type="application/x-javascript"
src="chrome://saadu/content/saadu.js" />
  <vbox align="left" id="vb">
    <label id="xlabel" value="&label.val;" />
    <image
src="chrome://saadu/locale/sp-MX/saadu/logo.png" />
    <button id="xbutton" label="Abrir SAADU"
oncommand="greet();" />
 </vbox>
</window>

chrome: saadu: skin: saadu.css
#xlabel { font-weight: bold; }
window  { background-color: white; }

chrome: saadu: locale: sp-MX: saadu: saadu.dtd
<!ENTITY label.val      "Hello, Welcome to SAADU">
<!ENTITY button.val     "SAADU">

chrome: installed.txt
content,install,url,resource:/chrome/saadu/content/
locale,install,url,resource:/chrome/saadu/locale/sp-MX/saadu/
skin,install,url,resource:/chrome/saadu/skin/

I have mozilla 1.5 in Eglish with extra language
support for Spanish.

Any help will be appreciated, and thank you for your
time and effort.

GBY!/Fco

=====
Ing. Francisco Benavides
Software Developer

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/


More information about the Jslib mailing list