"Alan Ezust" <[EMAIL PROTECTED]> wrote on 06/25/2006 06:49:49 PM:

> Doh, I should have posted that right away. It even has comments.
> http://jedit.cvs.sourceforge.
> net/jedit/plugins/XML/xml/completion/XsdElementDecl.java?revision=1.
> 1&view=markup

Hmmm.... this shows how you're not calling getAbstract(). :-)

Try running the code below. When I run it against the current code in SVN 
it prints:

para.class getAbstract(): true
list.class getAbstract(): true

==========================================================

import org.apache.xerces.xs.XSElementDeclaration;
import org.apache.xerces.xs.XSImplementation;
import org.apache.xerces.xs.XSLoader;
import org.apache.xerces.xs.XSModel;
import org.w3c.dom.bootstrap.DOMImplementationRegistry;

public class DocbookTest {
    public static void main (String [] args) {
        try {
            DOMImplementationRegistry dir = 
DOMImplementationRegistry.newInstance();
            XSImplementation xsi = (XSImplementation) 
dir.getDOMImplementation("XS-Loader");
            XSLoader loader = xsi.createXSLoader(null);
            XSModel model = loader.loadURI("
http://www.docbook.org/xsd/4.4/docbook.xsd";);
            XSElementDeclaration decl = 
model.getElementDeclaration("para.class", null);
            if (decl != null) {
                System.out.println(decl.getName() + " getAbstract(): " + 
decl.getAbstract());
            }
            else {
                System.out.println("para.class does not exist");
            }
            decl = model.getElementDeclaration("list.class", null);
            if (decl != null) {
                System.out.println(decl.getName() + " getAbstract(): " + 
decl.getAbstract());
            }
            else {
                System.out.println("list.class does not exist");
            }
        }
        catch (Exception e) {
            e.printStackTrace();
        }
    }
}

> On 6/25/06, Michael Glavassevich <[EMAIL PROTECTED]> wrote:
> > "Alan Ezust" <[EMAIL PROTECTED]> wrote on 06/25/2006 05:31:59 PM:
> >
> > > I apologise, I meant 2.8.0
> > >
> > > I'll try the latest SVN if you think those bugs were fixed since 
2.8.0.
> >
> > I don't recall there being a fix in this area after 2.8.0. Since I 
cannot
> > reproduce what you observed, it would make it easier to determine 
what's
> > going on if you posted some code which shows what you're doing.
> >
> > > However, I noticed that I can only see the web interface,
> > > http://svn.apache.org/viewvc/xerces/java/trunk/.
> > > If I want to check it out using a command line svn (read only), what
> > > is the right
> > > protocol/address?
> >
> > It is "http://svn.apache.org/repos/asf/xerces/java/trunk/";.
> >
> > Thanks.
> >
> > Michael Glavassevich
> > XML Parser Development
> > IBM Toronto Lab
> > E-mail: [EMAIL PROTECTED]
> > E-mail: [EMAIL PROTECTED]

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to