You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Jeffrey Rodriguez <je...@hotmail.com> on 2000/06/24 07:37:23 UTC
Xerces 1.1.2 release announcement
Xerces 1.1.2 release is available.
It is downloadable from :
http://xml.apache.org/dist/xerces-j/
Here are some of the new features in Xerces-J:
-Additional support for W3C XML Schema Language.
-DOS filenames no longer work. See Common Problems section of the FAQ.
For the latter look here:
http://xml.apache.org/xerces-j/faq-common.html#faq-5
This release is posted with June 21 date, and here is the release content:
-Added "any" element content support for Schema.
-Fixed adjacent text nodes bug in deferred DOM.
-Fixed namespace URI bug in deferred DOM.
-Fixed null document type node bug.
-Fixed StringReader index out of bounds exception bug.
-Turned on namespace support in all parsers, by default.
-Added feature to allow Schema support to be turned off.
-Fixed SAX2 DeclHandler, LexicalHandler callbacks.
-Fixed DOM Java serialization bug.
-Fixed datatype enumeration bugs.
-Fixed datatype pattern bugs.
-Fixed datatype min/maxLength bug.
-Modified samples to include additional switches.
-Fixed lexical comparison for string/qname datatypes.
-Added regular expression character class subtraction.
-Fixed regular expression bugs.
-Added URI class.
-Fixed import/include Schema bug.
-Fixed lots of Schema bug.
Big thanks to Paul Eng for his URI class contribution.
Thanks to you all for your contributions, participation and interest in the
Xerces-j project.
Jeffrey Rodriguez
XML Development
IBM Cupertino
ps.
- For those of you using PGP signature (sig files) you can find my key
by searching for jeffreyr@us.ibm.com. Key was created 06/05/2000.
It's key size is 4096/1024.
- If you are building source distribution in Linux ( or other Unix
systems) you may get an exception in the stylebook jar while
building the documentation. This is a know bug and it will be fixed in the
next release 1.1.3. The work around is to re execute make so your build will
finish.
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
Re: Xerces 1.1.2 bug: elementFormDefault="qualified" not working
Posted by Eric Ye <er...@locus.apache.org>.
You sample schema has a targetNamespace declared, but you didn't delare
another namespace for it, the only namespace binding is from prefix "" to
http://www.w3.org/1999/XMLSchema", which is not where you wanted to put you
stuff. Actually , named elements and types were not put in your intended
targetNameSpace. If you want to use targetNameSpace, you need to delcare
another namespace prefix for it WHEN you define the SCHEMA, your instance
document looks fine.
_____
Eric Ye * IBM, JTC - Silicon Valley * ericye@locus.apache.org
----- Original Message -----
From: "Roger Costello" <co...@mitre.org>
To: <xe...@xml.apache.org>; <co...@mitre.org>
Sent: Saturday, June 24, 2000 11:21 AM
Subject: Xerces 1.1.2 bug: elementFormDefault="qualified" not working
> It appears that there is a bug with elementFormDefault="qualified".
> When I try to validate my instance document I get a bunch of error
> messages stating that Book is not declared (Book is a local element).
>
> Here is the schema, instance document, and error message:
>
> Schema:
>
> <?xml version="1.0"?>
> <!DOCTYPE schema SYSTEM "structures.dtd">
> <schema xmlns="http://www.w3.org/1999/XMLSchema"
>
> targetNamespace="http://www.publishing.org/namespaces/BookCatalogue"
> elementFormDefault="qualified">
> <element name="BookCatalogue">
> <complexType>
> <sequence>
> <element name="Book" minOccurs="0"
> maxOccurs="unbounded">
> <complexType>
> <sequence>
> <element name="Title" type="string"
> minOccurs="1" maxOccurs="1"/>
> <element name="Author" type="string"
> minOccurs="1" maxOccurs="1"/>
> <element name="Date" type="string"
> minOccurs="1" maxOccurs="1"/>
> <element name="ISBN" type="string"
> minOccurs="1" maxOccurs="1"/>
> <element name="Publisher" type="string"
> minOccurs="1" maxOccurs="1"/>
> </sequence>
> </complexType>
> </element>
> </sequence>
> </complexType>
> </element>
> </schema>
> --------------------------------------------------------------------
> instance document:
>
> <?xml version="1.0"?>
> <BookCatalogue
> xmlns="http://www.publishing.org/namespaces/BookCatalogue"
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> xsi:schemaLocation=
>
> "http://www.publishing.org/namespaces/BookCatalogue
> BookCatalogue2.xsd">
> <Book>
> <Title>My Life and Times</Title>
> <Author>Paul McCartney</Author>
> <Date>1998</Date>
> <ISBN>94303-12021-43892</ISBN>
> <Publisher>McMillin Publishing</Publisher>
> </Book>
> <Book>
> <Title>Illusions The Adventures of a Reluctant
> Messiah</Title>
> <Author>Richard Bach</Author>
> <Date>1977</Date>
> <ISBN>0-440-34319-4</ISBN>
> <Publisher>Dell Publishing Co.</Publisher>
> </Book>
> <Book>
> <Title>The First and Last Freedom</Title>
> <Author>J. Krishnamurti</Author>
> <Date>1954</Date>
> <ISBN>0-06-064831-7</ISBN>
> <Publisher>Harper & Row</Publisher>
> </Book>
> </BookCatalogue>
> ---------------------------------------------------------
> error messages:
>
> [Error] BookCatalogue.xml:7:15: Element type "Book" must be declared.
> [Error] BookCatalogue.xml:8:24: Element type "Title" must be declared.
> [Error] BookCatalogue.xml:9:25: Element type "Author" must be declared.
> [Error] BookCatalogue.xml:10:23: Element type "Date" must be declared.
> [Error] BookCatalogue.xml:11:23: Element type "ISBN" must be declared.
> [Error] BookCatalogue.xml:12:28: Element type "Publisher" must be
> declared.
> [Error] BookCatalogue.xml:14:15: Element type "Book" must be declared.
> [Error] BookCatalogue.xml:15:24: Element type "Title" must be declared.
> [Error] BookCatalogue.xml:16:25: Element type "Author" must be declared.
> [Error] BookCatalogue.xml:17:23: Element type "Date" must be declared.
> [Error] BookCatalogue.xml:18:23: Element type "ISBN" must be declared.
> [Error] BookCatalogue.xml:19:28: Element type "Publisher" must be
> declared.
> [Error] BookCatalogue.xml:21:15: Element type "Book" must be declared.
> [Error] BookCatalogue.xml:22:24: Element type "Title" must be declared.
> [Error] BookCatalogue.xml:23:25: Element type "Author" must be declared.
> [Error] BookCatalogue.xml:24:23: Element type "Date" must be declared.
> [Error] BookCatalogue.xml:25:23: Element type "ISBN" must be declared.
> [Error] BookCatalogue.xml:26:28: Element type "Publisher" must be
> declared.
> [Error] BookCatalogue.xml:28:18: The content of element type
> "BookCatalogue" mus
> t match "(Book)+".
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
>
>
Xerces 1.1.2 bug: elementFormDefault="qualified" not working
Posted by Roger Costello <co...@mitre.org>.
It appears that there is a bug with elementFormDefault="qualified".
When I try to validate my instance document I get a bunch of error
messages stating that Book is not declared (Book is a local element).
Here is the schema, instance document, and error message:
Schema:
<?xml version="1.0"?>
<!DOCTYPE schema SYSTEM "structures.dtd">
<schema xmlns="http://www.w3.org/1999/XMLSchema"
targetNamespace="http://www.publishing.org/namespaces/BookCatalogue"
elementFormDefault="qualified">
<element name="BookCatalogue">
<complexType>
<sequence>
<element name="Book" minOccurs="0"
maxOccurs="unbounded">
<complexType>
<sequence>
<element name="Title" type="string"
minOccurs="1" maxOccurs="1"/>
<element name="Author" type="string"
minOccurs="1" maxOccurs="1"/>
<element name="Date" type="string"
minOccurs="1" maxOccurs="1"/>
<element name="ISBN" type="string"
minOccurs="1" maxOccurs="1"/>
<element name="Publisher" type="string"
minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
</element>
</schema>
--------------------------------------------------------------------
instance document:
<?xml version="1.0"?>
<BookCatalogue
xmlns="http://www.publishing.org/namespaces/BookCatalogue"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xsi:schemaLocation=
"http://www.publishing.org/namespaces/BookCatalogue
BookCatalogue2.xsd">
<Book>
<Title>My Life and Times</Title>
<Author>Paul McCartney</Author>
<Date>1998</Date>
<ISBN>94303-12021-43892</ISBN>
<Publisher>McMillin Publishing</Publisher>
</Book>
<Book>
<Title>Illusions The Adventures of a Reluctant
Messiah</Title>
<Author>Richard Bach</Author>
<Date>1977</Date>
<ISBN>0-440-34319-4</ISBN>
<Publisher>Dell Publishing Co.</Publisher>
</Book>
<Book>
<Title>The First and Last Freedom</Title>
<Author>J. Krishnamurti</Author>
<Date>1954</Date>
<ISBN>0-06-064831-7</ISBN>
<Publisher>Harper & Row</Publisher>
</Book>
</BookCatalogue>
---------------------------------------------------------
error messages:
[Error] BookCatalogue.xml:7:15: Element type "Book" must be declared.
[Error] BookCatalogue.xml:8:24: Element type "Title" must be declared.
[Error] BookCatalogue.xml:9:25: Element type "Author" must be declared.
[Error] BookCatalogue.xml:10:23: Element type "Date" must be declared.
[Error] BookCatalogue.xml:11:23: Element type "ISBN" must be declared.
[Error] BookCatalogue.xml:12:28: Element type "Publisher" must be
declared.
[Error] BookCatalogue.xml:14:15: Element type "Book" must be declared.
[Error] BookCatalogue.xml:15:24: Element type "Title" must be declared.
[Error] BookCatalogue.xml:16:25: Element type "Author" must be declared.
[Error] BookCatalogue.xml:17:23: Element type "Date" must be declared.
[Error] BookCatalogue.xml:18:23: Element type "ISBN" must be declared.
[Error] BookCatalogue.xml:19:28: Element type "Publisher" must be
declared.
[Error] BookCatalogue.xml:21:15: Element type "Book" must be declared.
[Error] BookCatalogue.xml:22:24: Element type "Title" must be declared.
[Error] BookCatalogue.xml:23:25: Element type "Author" must be declared.
[Error] BookCatalogue.xml:24:23: Element type "Date" must be declared.
[Error] BookCatalogue.xml:25:23: Element type "ISBN" must be declared.
[Error] BookCatalogue.xml:26:28: Element type "Publisher" must be
declared.
[Error] BookCatalogue.xml:28:18: The content of element type
"BookCatalogue" mus
t match "(Book)+".
Xerces 1.1.2: No Liftoff
Posted by Roger Costello <co...@mitre.org>.
Hi Folks,
The below schema validated just fine using xerces-1_1_1, but produced
tons of errors with xerces-1_1_2.
Hmm, interesting. I just ran xerces-1_1_2 on an instance document which
conforms to the below schema and it validated just fine. It appears
that validating the schema against structures.dtd fails, but validating
an instance document against the schema succeeds.
Here is a snippet of the error messages. The schema follows. /Roger
http://www.w3.org/1999/XMLSchema grammar not found
[Error] BookCatalogue1.xsd:13:31: The content of element type
"annotation" must match "(appinfo|documentation)*".
[Error] BookCatalogue1.xsd:15:25: The content of element type "sequence"
must match "(annotation?,(element|group|choice|sequence|any)*)"
As you can see below my schema is fine. The above error messages are
incorrect.
<?xml version="1.0"?>
<!DOCTYPE schema SYSTEM "structures.dtd"[
<!ATTLIST schema xmlns:cat CDATA #FIXED
"http://www.publishing.org/namespaces/BookCatalogue">
]>
<schema xmlns="http://www.w3.org/1999/XMLSchema"
targetNamespace="http://www.publishing.org/namespaces/BookCatalogue"
xmlns:cat="http://www.publishing.org/namespaces/BookCatalogue">
<element name="BookCatalogue">
<complexType>
<sequence>
<annotation>
<documentation>A book catalogue contains zero or
more books</documentation>
</annotation>
<element ref="cat:Book" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
</element>
<element name="Book">
<complexType>
<sequence>
<element ref="cat:Title" minOccurs="1" maxOccurs="1"/>
<element ref="cat:Author" minOccurs="1" maxOccurs="1"/>
<element ref="cat:Date" minOccurs="1" maxOccurs="1"/>
<element ref="cat:ISBN" minOccurs="1" maxOccurs="1"/>
<element ref="cat:Publisher" minOccurs="1"
maxOccurs="1"/>
</sequence>
</complexType>
</element>
<element name="Title" type="string"/>
<element name="Author" type="string"/>
<element name="Date" type="string"/>
<element name="ISBN" type="string"/>
<element name="Publisher" type="string"/>
</schema>
Re: Stylebook docs ?
Posted by Peter Donald <do...@mad.scientist.com>.
At 10:51 27/6/00 -0700, you wrote:
>There is no documentation for Stylebook.
>
>Nobody wants to put more work into it, under the assumption that Cocoon 2
(with
>Stylebook-like static generation capability) is just around the corner!
>
>If you have specific questions, I can answer them.
no specific questions - thanks anyway :P
Cheers,
Pete
*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power." |
| -Abraham Lincoln |
*------------------------------------------------------*
Re: Stylebook docs ?
Posted by Stefano Mazzocchi <st...@apache.org>.
Mike Pogue wrote:
>
> There is no documentation for Stylebook.
>
> Nobody wants to put more work into it, under the assumption that Cocoon 2 (with
> Stylebook-like static generation capability) is just around the corner!
Don't hold your breath for C2 but it's getting there, we are finalizing
the sitemap schema soon and when this is done, writing offline support
(stylebook-like static generation capability) will be a piece of cake.
Note to current Stylebook users: the working paradigm C2 uses is totally
different from Stylebook, but we'll make sure we make the "transition
path" as smooth as possible.
--
Stefano Mazzocchi One must still have chaos in oneself to be
able to give birth to a dancing star.
<st...@apache.org> Friedrich Nietzsche
--------------------------------------------------------------------
Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------
Re: Stylebook docs ?
Posted by Mike Pogue <mp...@apache.org>.
There is no documentation for Stylebook.
Nobody wants to put more work into it, under the assumption that Cocoon 2 (with
Stylebook-like static generation capability) is just around the corner!
If you have specific questions, I can answer them.
Mike
Peter Donald wrote:
>
> Hi,
>
> I was just wondering where the documentation for sitebook lies ?
>
> Cheers,
>
> Pete
>
> *------------------------------------------------------*
> | "Nearly all men can stand adversity, but if you want |
> | to test a man's character, give him power." |
> | -Abraham Lincoln |
> *------------------------------------------------------*
>
> ---------------------------------------------------------------------
> In case of troubles, e-mail: webmaster@xml.apache.org
> To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
> For additional commands, e-mail: general-help@xml.apache.org
Stylebook docs ?
Posted by Peter Donald <do...@mad.scientist.com>.
Hi,
I was just wondering where the documentation for sitebook lies ?
Cheers,
Pete
*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power." |
| -Abraham Lincoln |
*------------------------------------------------------*