Re: namespace prefixes

2010-10-25 Thread Michael Glavassevich
hen parse (using > SAX) each 'XSNamespaceItem.documentLocations' only until reaching > the root element (throwing something like StopParseException subtype > of SAXParseException from withing 'startElement' callback) from > which I extract whatever namespace prefixe

Re: namespace prefixes

2010-10-24 Thread Stanimir Stamenkov
ions' only until reaching the root element (throwing something like StopParseException subtype of SAXParseException from withing 'startElement' callback) from which I extract whatever namespace prefixes found on it. The structure collecting the prefix-namespace bindings takes c

Re: namespace prefixes

2010-10-22 Thread Michael Glavassevich
Mark Brucks wrote on 10/22/2010 06:23:03 PM: > Your example is still dealing with the interpretation of a prefix in > an existing document, and I don't have an existing document. I am > in control of which namespaces and which prefixes would be used. I was just giving a "simple" example. XML sc

Re: namespace prefixes

2010-10-22 Thread Mark Brucks
Your example is still dealing with the interpretation of a prefix in an existing document, and I don't have an existing document. I am in control of which namespaces and which prefixes would be used. HOWEVER, your last statement hits the nail on the head and explains everything. Indeed, I hav

Re: namespace prefixes

2010-10-22 Thread Michael Glavassevich
I think an example will help to illustrate why such a method makes no sense in the API. Consider the following document: http://a"; xmlns:b="http://b"; xmlns:y="http://y"; xmlns:z="http://z";> http://www.abc.com"; xmlns:x="http://www.xyz.com";> http://www.xyz.com"; xmlns:x="http://www

Re: namespace prefixes

2010-10-22 Thread Mark Brucks
Thanks for the responses. Some clarification about my problem. I have the schema, but no instance documents, and hence no worries about the fluid nature of prefixes between schema and instance documents. My current task is to generate a "starter" document from the schema. What I would like t

Re: namespace prefixes

2010-10-21 Thread Michael Glavassevich
Hi Mark, Mark Brucks wrote on 10/21/2010 03:17:47 PM: > Here is the beginning of my schema file: > > http://www.foo.com/SchemaOne"; >xmlns:s1="http://www.foo.com/SchemaOne"; >xmlns:s2="http://www.foo.com/SchemaTwo"; >xmlns:s3="http://www.foo.com/SchemaThree";

Re: namespace prefixes

2010-10-21 Thread keshlam
Mark Brucks To: j-users@xerces.apache.org Date: 10/21/2010 03:14 PM Subject: namespace prefixes Here is the beginning of my schema file: http://www.foo.com/SchemaOne"; xmlns:s1="http://www.foo.com/SchemaOne"; xmlns:s2="http://www.foo.com/SchemaTwo";

namespace prefixes

2010-10-21 Thread Mark Brucks
Here is the beginning of my schema file: http://www.foo.com/SchemaOne"; xmlns:s1="http://www.foo.com/SchemaOne"; xmlns:s2="http://www.foo.com/SchemaTwo"; xmlns:s3="http://www.foo.com/SchemaThree"; ...> Using the XML Schema API, I parse the schema and h