Dangling references error or not?

2005-04-29 Thread Bob Foster
this schema of the form: Error - src-resolve: Cannot resolve the name 'unknownX' to a(n) 'type definition' component. Where X is one of: 1, 2, 3; Bob Foster Henry S. Thompson wrote: > I'll answer a simple question which I understand, and which I _think_ >

Re: How to validate an XSD File (validating a (not against a) Schema)

2005-04-16 Thread Bob Foster
ssertion on xml-dev that XML Schema had pretty much put conformance problems behind it. Is this a spec to which it is impossible to conform in a performant way (or entirely in any way)? Bob Foster - To unsubscribe, e-mail: [EMAIL

Re: How to validate an XSD File (validating a (not against a) Schema)

2005-04-15 Thread Bob Foster
lidate a schema as it parses one, subject to the parameters you specify. Full validation is one of the options. In my experience, Xerces does a good job, even compared to the ever-in-flux XSV. Bob Foster - To unsubscribe, e-mail: [

Re: StandardParserConfiguration how to set up?

2005-03-23 Thread Bob Foster
r and XSLT Editor/Debugger http://www.oxygenxml.com Bob Foster wrote: What features do you need to set in StandardParserConfiguration so that: a) A DTD is read for entity declarations, and b) An XML Schema is used for validations. I have a customer who wants to do, e.g., ... Take out the DOCTYP

StandardParserConfiguration how to set up?

2005-03-23 Thread Bob Foster
against the DTD. Need to find a happy middle ground. Thanks. Bob Foster - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: OutOfMemory due to SymbolTable caching!

2005-03-18 Thread Bob Foster
Of course. I was being dumb. Since I thought you were trying to avoid calling intern() I didn't even see it. But I also don't see that a lot of storage is saved. You still have the intern table. I guess, compared to what? Bob Michael Glavassevich wrote: I do mean == (this also implies equals())

Re: OutOfMemory due to SymbolTable caching!

2005-03-17 Thread Bob Foster
] for all n < length1. I think you described equals() not ==, yes? Bob Foster - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: OutOfMemory due to SymbolTable caching!

2005-03-17 Thread Bob Foster
your intern method, like an integer. IIRC Saxon does something like this internally. So there's even an open source implementation. But the API would need to allow returning non-Objects to let you do this. A long should do it. Bob Foster --

Re: OutOfMemory due to SymbolTable caching!

2005-03-17 Thread Bob Foster
I'm really missing something here. What do you do when addSymbol is called with the same char argument as before? Bob Foster http://xmlbuddy.com/ Michael Glavassevich wrote: String.intern() always returns a unique string object, so you could override addSymbol like this: public S

Re: OutOfMemory due to SymbolTable caching!

2005-03-17 Thread Bob Foster
xpand on your suggestion? Bob Foster http://xmlbuddy.com/ Michael Glavassevich wrote: You could extend the SymbolTable class and then replace the default by setting the http://apache.org/xml/properties/internal/symbol-table property with your own SymbolTable. The parser components assume that sy

Re: utf-8 characters problem

2005-03-01 Thread Bob Foster
ng on the way out. Then Java will use whatever is set as the platform encoding, e.g., win1250. What normal text editors do with a UTF-8 file is really outside the scope here. You have to use a competent editor. Bob Foster Jakub Kahovec wrote: I've been experimenting a bit with serializing a

Re: utf-8 characters problem

2005-03-01 Thread Bob Foster
platform you're running on. Bob Foster Kahovec, Jakub wrote: It produdes Xerces 2.6.2 (LSParser, LSSerializer and XMLSerializer). I've been using xerces parser and serializer in my java authoring tool to load and save documents. I've found out the problem with encoding when I loa

Re: utf-8 characters problem

2005-02-28 Thread Bob Foster
each character had eight bits. Tell us a little more about what steps you took to see what you describe and maybe someone will be able to help. Bob Foster Jakub Kahovec wrote: Hi, when I parse the xml document (with xerces 2.6.2) which has in xml declaration specified utf-8 encoding and

Re: utf-8 characters problem

2005-02-28 Thread Bob Foster
same whether a character is encoded as a UTF-8 sequence or a character reference. Bob Foster -- fas F. Andy Seidl, Co-founder MyST Technology Partners http://myst-technology.com | http://blogsite.com -Original Message- From: Jakub Kahovec [mailto:[EMAIL PROTECTED] Sent: Monday

Re: DTD scanned despite being preloaded into grammar pool

2005-02-23 Thread Bob Foster
Michael Glavassevich wrote: Am I missing something here? If the document has no DOCTYPE declaration there's no DTD to load. Maybe my assumption was wrong. I assumed he specified it in his code. But you're right, it isn't in the code he showed. Bob

Re: DTD scanned despite being preloaded into grammar pool

2005-02-23 Thread Bob Foster
Sounds like a bug to me. If the cache is installed, Xerces should use it for every DTD/schema access. Bob Foster Ritu Raj Tiwari wrote: Now, DTD caching seems to work fine for documents that have a DOCTYPE declaration. But for documents where no such declaration is present, stepping through the

Re: Use of xsi:schemaLocation

2005-02-19 Thread Bob Foster
This isn't what you asked about, but the first schemaLocation (on element) isn't legal. You left out the namespace. Bob Foster Thropp, Shawn wrote: I am trying to determine if the following is legal. I have been searching the W3C recommendations and can't determine i

Re: XML Declaration

2005-02-14 Thread Bob Foster
The xml declaration is not a processing instruction. The Oracle parser is wrong. Bob Foster Jason wrote: Hi Alistair, I'm not sure why you can't parse the xml. I've looked at this a bit more and it seems that the Oracle parser is reporting the xml delcaration as a Processing I

Re: White spaces are required between publicId and systemId.

2005-01-30 Thread Bob Foster
I have trouble believing you got that error message from this XML: blah>blah<blah How about showing us the XML that has the DOCTYPE declaration? ;-} Bob Foster IndianAtTech wrote: Hi All, What does this error means?? I can't see any problem with my xml file here is my xml SELEC

Re: duplicate attributes

2005-01-21 Thread Bob Foster
3.1: "An attribute name MUST NOT appear more than once in the same start-tag or empty-element tag." Bob Foster Frank Zhou wrote: Hi, all, Not sure if this is the place to ask this, but I would like to know if it is valid for an XML element to have duplicate attributes. Thanks in adva

Re: Newcomer docs to Xerces

2005-01-21 Thread Bob Foster
See Elliote Rusty Harold's book, Processing XML with Java, (http://www.cafeconleche.org/books/xmljava/) for approachable examples. Bob Foster Sivan Green wrote: Hi List! My name is Sivan Green, I am doing a project which mandates the usage of Xerces as the XML DOM parser that I should use

Re: Validating a DOM

2005-01-21 Thread Bob Foster
a StringReader. Bob Foster Curtiss Howard wrote: By "converting the DOM into a String" I assume you mean the schema DOM? If so, I believe that yes, you must serialize the DOM into a String. Actually, to be more specific, you have to serialize the DOM into a String and THEN create an Input

Re: Validation using default namespace

2005-01-17 Thread Bob Foster
in the document must be relative to the document, per your last example. Does that work? Trying that will at least produce an error message that differentiates between not being able to find the schema and not finding the element decl in the schema. Bob Foster [EMAIL PROTECTED] wrote: Hi, M

Re: Problem caching grammars

2005-01-14 Thread Bob Foster
If you're running in Windows (or even if you're not) the second "first" schema cache is faster because all directories have been resolved and most of the files are probably in memory. I see this effect everywhere I process a number of files more than once. Bob Foster Huw R

Re: Problem caching grammars

2005-01-08 Thread Bob Foster
n the net. Wouldn't work otherwise. I'm wondering if, initially, my pool is missing a grammar and on the first parse it's actually caching the grammar I've missed. Sounds likely. You can set a breakpoint in retrieveGrammar() to see if you get called for a schema you aren't

Re: Dropping tag content upto a special character when parsing XML

2005-01-06 Thread Bob Foster
Accumulate characters in a StringBuffer until you get an endElement. Bob Foster Ranjith Kodikara wrote: Hi, Thanks for the reply. Is there any easy way of handling this? or If you know a place where I can get some examples, please let me know. Thanks, Ranjith - Original Message - From

Re: Xerces URI does not handle JAR scheme?

2005-01-06 Thread Bob Foster
Seems like it would be a lot simpler to stop using query strings in your jar URIs. Bob Foster Cory Prowse wrote: Yup this refers to Xerces because of the internal implementation of URI (org.apache.xerces.util.URI). Basically it doesn't handle jar URI's which are in the form of: ja

Re: Validate With Schema in CLASSPATH

2005-01-05 Thread Bob Foster
Why what? I can deal with top-quoting, but no-quoting is a challenge. ;-} Bob Foster Joseph Kesselman wrote: If we're using the Java URI support, I believe the jar: scheme is supported by that layer. If we're doing our own URI support... why? __ Joe

Re: Validate With Schema in CLASSPATH

2005-01-05 Thread Bob Foster
e asker to EntityResolver wasn't meant to insult your knowledge. My wording was "I'm not aware"; if, despite my unawareness, a jar: scheme really is supported, then my apologies for muddling the issue. Cheers, Eric Bob Foster wrote: I know about EntityResolver, thanks. What makes

Re: Validate With Schema in CLASSPATH

2005-01-05 Thread Bob Foster
I know about EntityResolver, thanks. What makes you think a jar: URI isn't a resolvable URI? I guess the answer to my question is no. Bob Foster Eric J. Schwarzenbach wrote: I've never used the external-schemaLocation (or external-noNamespaceSchemaLocation) property, so maybe I

Re: Xerces URI does not handle JAR scheme?

2005-01-05 Thread Bob Foster
(in this case, appended). AFAICT, you should have wound up with a URI of: jar:embeddedzipfile:file:/home/cprowse/repository.dtd The result you claim is surprising, but your example is suspicious. How did 'repository.dtd' become 'repository.xml'? Why did you cast base to U

Re: Validate With Schema in CLASSPATH

2005-01-04 Thread Bob Foster
Did you try the obvious? parser.setProperty( "http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation";, url.toString() ); Bob Foster Michael MacFadden wrote: Hi, You are correct, I should be using the noNamespaceSchemaLocation. I switched to that

Re: Problems setting the external schema Location feature

2004-12-31 Thread Bob Foster
to the location of a schema document with no targetNamespace [attribute]." Left unsaid is the fact that lists in XML are whitespace-separated. Bob Radhakrishnan J wrote: Any answers to my questions in POST#6 in this thread ?? Thanks, Radhakrishnan -Original Message- From: Bob Foster

Re: Problems setting the external schema Location feature

2004-12-31 Thread Bob Foster
that you will need to resort to an EntityResolver. See Curtiss Howard's post in the "Re: Problems setting the external schema Location feature" thread for details. Bob Foster Radhakrishnan J wrote: OK. Changed that to file:///D:/ASAP/Test/Test/xyz/Origination/Standalone/Get

Re: Problems setting the external schema Location feature

2004-12-31 Thread Bob Foster
TED]> wrote: On Thursday 30 December 2004 03:02, Bob Foster wrote: What you have specified as an argument is pretty clearly not a URI. It doesn't begin with a scheme. It's hard to tell from reading it what the correct URL should be, but the form must be: jar:file:/path-to-jar-file!/path-with

Re: Problems setting the external schema Location feature

2004-12-30 Thread Bob Foster
Didn't notice the slash when cut and pasting. Should be, e.g., String location = "http://www.xyz.net/oagis file:///D:/ASAP/Test/Test/xyz/Origination/Standalone/GetLoan.xsd"; Bob Foster Bob Foster wrote: Looks like a different problem. I'm pretty sure you need to specify a

Re: Problems setting the external schema Location feature

2004-12-30 Thread Bob Foster
Looks like a different problem. I'm pretty sure you need to specify a namespace, URI pair in a schemaLocation, like you did in your document. E.g., String location = "http://www.xyz.net/oagis file://D:/ASAP/Test/Test/xyz/Origination/Standalone/GetLoan.xsd"; Bob Foster http

Re: Problems setting the external schema Location feature

2004-12-30 Thread Bob Foster
eter/.dpml/main/dpml/test/jars/dpml-test-testschema.jar!/net/dpml/test/testschema/ConfigurableB.xschema What did you think the /home/peter/metro/svn/development/main/metro/composition/test/ at the beginning would accomplish? Bob Foster Peter Neubauer wrote: Hi, trying to set the feature on a 2.6.2

Re: Problem with grammar pool

2004-12-07 Thread Bob Foster
I don't want to drag this out forever, but no. As stated there are no necessary dependency relationships except by the document. This is because the document may directly reference any number of the schemas, including all. Bob Jeff Greif wrote: If this was all you had to use, you would be safe

Re: Problem with grammar pool

2004-12-06 Thread Bob Foster
- Original Message - From: "Bob Foster" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 06, 2004 1:38 PM Subject: Re: Problem with grammar pool Jeff Greif wrote: Another not-very-appealing possibility is to iterate over the grammar pool before and after p

Re: Problem with grammar pool

2004-12-06 Thread Bob Foster
Jeff Greif wrote: Another not-very-appealing possibility is to iterate over the grammar pool before and after parsing the document or root schema and look at the change. I'm not sure what I would find out from this. This assumes the grammar pool is not used by multiple threads. It is, but I have a

Re: Problem with grammar pool

2004-12-06 Thread Bob Foster
Yes, you could do that. Then if you had seen a sequence of schemas and later one of these changed you could just throw away everying in the sequence preceding the changed schema. Assuming that which schema changes is somewhat random, you will, on average, throw away half of the cache related to

Re: Problem with grammar pool

2004-12-04 Thread Bob Foster
Jeff Greif wrote: From: "Bob Foster" <[EMAIL PROTECTED]> My XMLGrammarPool implementation keeps a cache of grammars, invalidating the cache when a grammar is modified. This works quite well when a document directly references a schemaLocation of, say, A.xsd. If A.xsd is modified

Problem with grammar pool

2004-12-04 Thread Bob Foster
, Xerces doesn't seem to provide any way to get such dependency information. AFAIK, the grammar pool can't tell the difference between two schemas that are used sequentially (independent) and one schema included by another (dependent). Any suggestions welcome.

Re: Why didn't XML provide a document separator?

2004-11-24 Thread Bob Foster
Because such a stream is not an XML document, I suppose. Bob Foster [EMAIL PROTECTED] wrote: I've always been curious why the XML spec never provided a way to separate multiple documents in a stream. In almost all my uses of XML, I've had to come up with a special character to se

Re: SAX Parse error while parsing CDATA element

2004-11-22 Thread Bob Foster
sections as many times as necessary. Bob Foster Andy Clark wrote: Michael Glavassevich wrote: The sequence "]]>" [1] cannot appear in character data. You should escape the ">" with >. Actually, escaping it wouldn't do any good because the string ">"

Re: Special characters as question marks?

2004-08-20 Thread Bob Foster
The value ≤ can't be contained in a byte (0-256). Bob Foster http://xmlbuddy.com Felix Planjer wrote: I could be wrong, but I've tested it and am fairly sure the string contains '?'. If I output: comp.getNodeValue().getBytes()[0] it has the value 63, which is the byte value of

Re: Special characters in XML being validated against a schema

2004-08-17 Thread Bob Foster
='http://www.xyz.com/ContentMetaData ContentMetaData.xsd'> No, it needs to be: Bob Foster http://xmlbuddy.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Schema Pattern Question

2004-08-10 Thread Bob Foster
It's not JDOM, it's Java. Java requires you to escape a \ in a string as \\. Bob Foster David Morris wrote: Ankit, What you describe is what I would expect but it seems that in practice I have to double escape the pattern. I am running my validation via JDOM, so it is possible that is

Re: Bug parsing xhtml-strict schema

2004-07-20 Thread Bob Foster
Well, it's time to unimplement it. I've been informed by Steve Sperberg-McQueen that a portion of that errata resolution has been rewritten so as to allow the usage in xhtml1-strict (and many other published schemas). Bob Foster Michael Glavassevich wrote: Hello Michael, This errat

Re: Bug parsing xhtml-strict schema

2004-07-20 Thread Bob Foster
People may be interested to know that the spec is about to change _back_ so that 1.0 schemas that were correct and became incorrect because of the pattern errata become correct again. ;-} Kudos to the schema committee for this. Now, when can we expect to see Xerces conform? Bob Foster michael

How to get namespace prefix mapping in schema?

2004-05-09 Thread Bob Foster
While processing an XSSimpleTypeDefinition that has enumeration values which are QNames, I need to know the namespace URI that corresponds to the QName prefix used to define the values in the schema. How do I get access to that? Thanks. Bob Foster http://xmlbuddy.com

Re: set external schema location in jar file

2004-05-04 Thread Bob Foster
within the jar. Haven't tried this with Xerces but should work. Bob Foster - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: maxOccurs="99999"

2004-03-23 Thread Bob Foster
] http://xml.apache.org/xerces2-j/properties.html#security-manager [2] http://xml.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/util/SecurityManager.html On Mon, 22 Mar 2004, Bob Foster wrote: It would be far better to pick a smaller upper bound by default and require an option to be set

maxOccurs="99999"

2004-03-22 Thread Bob Foster
Just a comment. Xerces' handling of large maxOccurs values seems pretty broken. When I debugged into it, I discovered that the outofmemory exceptions were caused by Xerces trying to allocate, IIRC, a table with dimensions 19*19. Yes, you can always tell the user to use "unbounded", but

Re: Bug parsing xhtml-strict schema

2004-03-17 Thread Bob Foster
and not just a need for lookahead.) I guess we'll just be going through a period where half the tools accept it and half reject it, but it's good to know Xerces is in the more up-to-date half. Bob Bob Foster <[EMAIL PROTECTED]> wrote on 03/17/2004 05:37:40 PM: Xerces 2.6.0 rep

Bug parsing xhtml-strict schema

2004-03-17 Thread Bob Foster
Xerces 2.6.0 reports an error in: http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd against this regex pattern (among others): Xerces is complaining about the - that begins [-+]. Yet XML Schema Part 2 http://www.w3.org/TR/xmlschema-2/#nt-charRange specifically allows a - to begin

Re: UTF-8 encoding errors are not always detected

2004-02-20 Thread Bob Foster
Encoding detection happens when the document is opened; after that, a conversion error may have caused a well-formed error, but it cannot be identified as a charset problem. Most likely the parser isn't detecting the non-UTF-8 characters because Java isn't. I have seen mention that you can ask

Re: Mismatch between XML-Schema API and Xerces Implentation

2004-02-04 Thread Bob Foster
Sure looks like a bug to me. Bob Foster http://xmlbuddy.com/ Franz-Josef Herpers wrote: Hi, I'm not sure if one should call the following a bug, but at least it seems like a misdirection which costs me an hour of debugging time. The interface org.apache.xerces.xs.XSModel of the XML-Schem

Re: XML Validation

2004-01-23 Thread Bob Foster
he "entity problem now that DTDs aren't used". If you can have your schema and DTD, too, that would be a non-problem. Bob Foster http://xmlbuddy.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: XML Catalogs in Xerces

2004-01-21 Thread Bob Foster
of caching. Bob Foster http://xmlbuddy.com/ Michael Glavassevich wrote: Hi George, We think there is a need for another utility class. By default the resolver uses JVM wide system properties and/or a properties file to determine the settings used by the catalog. Unless you provide one, the

Re: XML Catalogs in Xerces

2004-01-20 Thread Bob Foster
Hi, Sounds good. While you're up, could you have your utility class implement EntityResolver, as well, so it can be used at the SAX level? Bob Foster http://xmlbuddy.com/ Michael Glavassevich wrote: Hi everyone, We've been re-evaluating our original approach for including suppor

Re: [ANN]: XMLCatalog Support in Xerces

2004-01-17 Thread Bob Foster
Sounds good. Just a few responses... Michael Glavassevich wrote: Hi Bob, my comments are below... On Fri, 16 Jan 2004, Bob Foster wrote: This seems a good thing to do! Some feedback and questions... - Please don't do anything that will interfere with the operation of entity reolvers. If an e

Re: [ANN]: XMLCatalog Support in Xerces

2004-01-16 Thread Bob Foster
fier" mode, as in the catalog spec? I guess this would set the default and the catalog itself could still override it with prefer attributes? - Will you support jar: scheme URIs? Bob Foster Michael Glavassevich wrote: In the upcoming release of Xerces-J we are going to be including OASIS

Re: Parsing misbehavior using DTD grammar pool

2004-01-15 Thread Bob Foster
that sentence. It's an interesting engineering problem how one can both precompile a DTD and defer evaluation of its parameter entities, esp. in the presence of conditional include/ignore. Bob Foster http://xmlbuddy.com/ -

Re: [OT] Character Sets (Was Re: ContentHander characters discrepancy)

2004-01-14 Thread Bob Foster
Carl Hume wrote: On January 14, 2004 03:34 pm, Bob Foster wrote: Of course not. The default encoding is UTF-8. An erroneous encoding declaration won't make things better. I mean, specify the actual encoding. I'm going to take a step back for a second, because I'm (obviously) confu

Re: ContentHander characters discrepancy

2004-01-14 Thread Bob Foster
Carl Hume wrote: On January 14, 2004 02:33 pm, Bob Foster wrote: Adding an explicit encoding declaration to your XML document should resolve the problem. I would have though so, but unfortunately: does not work. Of course not. The default encoding is UTF-8. An erroneous encoding declaration

Re: ContentHander characters discrepancy

2004-01-14 Thread Bob Foster
Adding an explicit encoding declaration to your XML document should resolve the problem. Bob Foster http://xmlbuddy.com/ Christopher Ebert wrote: Look at your character encodings. If the Laptop is probably windows, the encoding is probably Cp 1252. The other machine must have a

Re: Validation error on prefixed attribute

2004-01-14 Thread Bob Foster
local" attribute does not belong to any namespace. For both examples to be valid, the element would have to have an attribute named attr and there would have to be a global attribute in the namespace (defined at the top level) named attr. Bob Foster http://xmlbuddy.com/ ---

Re: Version 2.6.0 doesn't build

2004-01-11 Thread Bob Foster
ckage (org.w3c.dom.html2). [1] http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/java-binding.html [2] http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/java-language-binding.html On Sat, 10 Jan 2004, Bob Foster wrote: I downloaded XercesJ 2.6.0 source, stuffed it in an Eclipse project and bui

Version 2.6.0 doesn't build

2004-01-10 Thread Bob Foster
ethod: .getContentDocument()." The declaration in HTMLFrameElement is typical: /** * The document this frame contains, if there is any and it is available, * or null otherwise. * @since DOM Level 2 */ public Document getContentDocument(); What's the deal? Thanks.

Re: Schema Help

2004-01-08 Thread Bob Foster
stead of "##any". You may want something else entirely. But you can't do what you wrote. Bob Foster http://xmlbuddy.com/ Benson Cheng wrote: One of the complexTypes in my schema as below: When I use

Re: XHTML construction problem with ampersands / special characters

2003-12-23 Thread Bob Foster
encoding, and _all_ Unicode characters can be represented in, e.g., UTF-8. Bob Foster http://xmlbuddy.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How can you prevent DeferredTextImpl?

2003-12-20 Thread Bob Foster
ot; " I don't think this is an unreasonable demand - since many applications don't want to be bothered with how the document is formatted? It's not just whitespace. Also comments, processing instructions. You have 200 bugs in your code caused by misunderstanding XML

Re: How can you prevent DeferredTextImpl?

2003-12-18 Thread Bob Foster
(Node node) { while (node != null && node.getNodeType() != Node.ELEMENT_NODE) node = node.getNextSibling(); return node; } // typed from memory - if they don't compile/run, fix 'em You could add error checking for non-whitespace text if desired. Bo

Re: Réf. : RE: Xerces supports XPath ?

2003-12-14 Thread Bob Foster
My XML instance document is constrained by W3C schema and XPath. I hope one processor can perform two tasks. Does anybody have any clue to do that ? Jing Yang > -Original Message- > From: Bob Foster [mailto:[EMAIL PROTECTED] > Sent: Tuesday

Re: Xerces supports XPath ?

2003-12-02 Thread Bob Foster
Lingzhi Zhang wrote: It is just a minimum xpath parser. For full support to XPath 1.0, try Xalan. By "minimum" do you mean it supports only the XPath syntax allowed by XML Schema selections and fields? Bob - To unsubscribe, e-mai

Re: Schema content access

2003-11-25 Thread Bob Foster
an unambiguous sequence, e.g., (a, b,...), only the next element needs to be tested. Etc.) Bob Foster - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Resolving Entities

2003-11-18 Thread Bob Foster
Eric Sirianni wrote: Yes. Here is the code I am using public static org.apache.lucene.document.Document preParseXMLFile(File xmlFile) { try { DOMParser parser = new DOMParser(); FileReader reader = new FileReader(xmlFile); parser.parse(new InputSou

Re: Resolving Entities

2003-11-18 Thread Bob Foster
What version are you running? This bug has popped up in one guise or another all over Xerces in the past, but I believe they have fixed it in the 2.5.0 version. Bob Foster Eric Sirianni wrote: I am trying to parse the following XML document using Xerces-J: http://www.oasis-open.org/docbook/xml

Re: [Discuss] Pull Parsing, JSR-173, and Xerces

2003-10-06 Thread Bob Foster
wants to carry on a discussion of this topic. Not on the user list. Thanks, Donald Holliday -Original Message- From: Bob Foster [mailto:[EMAIL PROTECTED] Sent: Sunday, October 05, 2003 11:41 PM To: [EMAIL PROTECTED] Subject: Re: [Discuss] Pull Parsing, JSR-173, and Xerces Andy Clark wrote

Re: [Discuss] Pull Parsing, JSR-173, and Xerces

2003-10-06 Thread Bob Foster
afe, nor is there any way for an application to disable any of them. Is it too late to fix this? Bob Foster http://www.xmlbuddy.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: XInclude

2003-10-03 Thread Bob Foster
Jacob Kjome wrote: I specified the real URI. I gave the actual path Try file:/C:/test.xml Try file:///C:/test.xml (three slashes after the file: scheme). The following should also work: file://localhost/C:/test.xml but why involve the network? I find it hard to believe it doesn't work with a val

Re: [OT]-- Editing XML

2003-09-18 Thread Bob Foster
be a considerable reduction of complexity on the server side. It may be too soon to catch this wave, but something to keep an eye on.   Bob Foster - Original Message - From: Greg Hess To: Xerces User Mail list Sent: Wednesday, September 17, 2003 2:28 PM Subject: [OT]

Re: XMLGrammarPreparser question

2003-09-12 Thread Bob Foster
Sorry to be dense, but what exactly is the bug? External entities don't work in the preparser? Something more subtle? Bob Foster - Original Message - From: "Neil Graham" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 1

Configure Xerces so DTD used for entities and schema used for validation?

2003-09-05 Thread Bob Foster
Can one configure the parser to allow a DTD internal or external subset to be used to define entities while an XML Schema(s) is used for validation? If so, what set of parameters need to be specified? Is there a way to do it without using XNI? Thanks. Bob Foster http://www.xmlbuddy.com

Re: Schema validation using multiple schemas

2003-08-26 Thread Bob Foster
Yes, that all makes sense. I still believe, in addition, that the ability to (Blocate a schema for a namespace based on an import in another schema is (Bimplementation-dependent. A processor is not required to do anything with (Bthe schemaLocation in an import, including remember it. (B (BOn t

Re: Schema validation using multiple schemas

2003-08-25 Thread Bob Foster
Import doesn't make one schema define multiple namespaces. A processor is (Bnot required to resolve or remember the schemaLocation of an imported (Bschema. Specify the schemaLocation for both schemas in your instance (Bdocument, e.g., (B (Bxsi:schemaLocation='http://foo.com/namespace1 ns1.xsd

Re: xinclude funnies

2003-08-23 Thread Bob Foster
you can invent your own scheme for your EntityResolver to interpret. For example, if you give it "memory:docname" as a base URI and a relative URI in the XInclude of part1/subpart1/abc.xml, your resolver should get "memory:part1/subpart1/abc.xml" as the URI to resolve, a

Re: Problem with Xerces and threads - any ideas?

2003-08-08 Thread Bob Foster
of memory or overflowing the JVM stack, both of which can cause the JVM to stop abruptly. Bob Foster - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: numeric entities

2003-08-08 Thread Bob Foster
it's not an error. XML documents are Unicode text and { is a legal Unicode character. ISO-8859-1 is just an encoding; it doesn't restrict the character range of the document. Bob Foster - To unsubscribe, e-mail: [EMAIL PRO

Re: examining XML schema attributes

2003-08-07 Thread Bob Foster
for a particular type, independent of its base types? For example, if complex type A is derived by extension from complex type B, where can one find only those elements and attributes added by A? Thanks. Bob Foster - To unsu

Re: examining XML schema attributes

2003-08-06 Thread Bob Foster
would be necessary e.g., to show an outline view or a graph that includes content models, types, groups, etc. Do we need getContentModel() for such an application, or is there another way to do it? Bob Foster - Original Message - From: "Sandy Gao" <[EMAIL PROTECTED]> To: &

Re: Validation fails with targetNamespace == default namespace?

2003-08-06 Thread Bob Foster
> Ok, now it makes sense. So, if I add elementFormDefault="qualified" > the my schema...Correct? Correct and always a good idea when you have a targetNamespace. Bob Foster - To unsubscribe, e-mail: [EMAI

Re: examining XML schema attributes

2003-07-26 Thread Bob Foster
en though "XSSimpleTypeDefinition is preferred over XSSimpleTypeDecl" it is really not obvious when one must use an "implementation type" in order to avoid re-doing work the parser has already done. Thanks. Bob Foster

Re: Empty Text nodes in DOM structure

2003-07-24 Thread Bob Foster
> How can I specify this (element content only - no text nodes)? Don't specify mixed in your complexType. If you are asking, "Can I prohibit whitespace between elements?", I believe the answer is no. Bob - To unsubscribe, e-ma

Re: validation of XML file

2001-10-30 Thread Bob Foster
Not exactly a Xerces question, but here is an answer. Any element in the *-qualified list can appear any number of times and the ? has absolutely no effect. (a|b)*, (a?|b?)*, (a?|b)* and (a|b?)* all describe the same grammar. Bob - Original Message - From: "Shashank" <[EMAIL PROTECTED]>

Re: text nodes missing?

2001-08-16 Thread Bob Foster
Why would they? They don't have any text contents. Bob Foster WebGain - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: creating an null DOCTYPE in Xerces2

2001-08-16 Thread Bob Foster
eople want and need to do. I think you've slipped away from Elana's point. It's not that you can't create a new, empty document with a docType of your own making (an important use case), and it's not that you can't import nodes from an existing document to the new d

Re: creating an null DOCTYPE in Xerces2

2001-08-15 Thread Bob Foster
to do a document.removeChild(doctype) to remove the > doctype node. And then you could do a document.appendChild(newdoctype)? Then why does the DOM go to such lengths to prevent you from editing a DocumentType, importing one, etc.? Do you suppo

  1   2   >