At this point in time, even though it is not the ideal solution, I'm afraid that
you will have to put your ID attribute declarations into the internal subset
(inline them in the XML file).  As we move towards expanding our XML
functionality to include schema validation, better alternatives that offer the
caching benefits you describe will become available.

Thanks for your patience.  I was away on vacation and then on travel stints for
the last couple of months.

Nisheeth
--
Boris Savov wrote:

> ok 10'x for the info, but what am i suppose to do if i want to refer to the
> elements by Id attribute
> what's more i want to describe the skeleton ot the document and put some
> default values for some attributes
> i doubt you will suggest me to put the all DTD inline in the file because if
> they are separated DTD will load to
> the clients browser only once and is going to stay in the cache and only the
> content ot the document (i mean XML file)
> will run through the net every time because of dynamic creation on the server
>
> how could i cope with this
> regards
>
> Nisheeth Ranjan wrote:
>
> > The XML parser in Mozilla is a non-validating parser and, therefore, does
> > not load external DTDs.  This is why your DTD works when it is inline and
> > doesn't when it is in an external file.
> >
> > Nisheeth
> > --
> > Boris Savov wrote:
> >
> > > hello i wonder what is wrong with this stuff
> > > here is "xml.xml" file
> > >
> > > <?xml version="1.0"?>
> > > <!DOCTYPE greeting SYSTEM "xml.dtd">
> > > <greeting xmlns:html="http://www.w3.org/1999/xhtml">
> > >  <html:script>
> > >   function test(){
> > >    var elem = document.getElementById("p1");
> > >    dump( "test "+elem+"   "+elem.getAttribute( "value" )+"\n" );
> > >   }
> > >  </html:script>
> > >  Hello, world!
> > >  <html:button onclick="test();">click</html:button>
> > >  <pesho slid="p1" />
> > > </greeting>
> > >
> > > and then comes "xml.dtd" file
> > > <!ELEMENT pesho (pesho1?,pesho2?)>
> > > <!ATTLIST pesho
> > >   id  ID  #REQUIRED
> > >   value  CDATA "someDefault"
> > > >
> > >
> > > i whant to access to the id property of element it seems to works fine
> > > if dtd is inline but
> > > if i

Reply via email to