Re: Using Schema 1.1 with SourceValidator example.

2012-03-08 Thread Jim Barnett
Thanks.  That was certainly part of the problem.  I've downloaded the
1.1 beta package, and it now recognizes the -xsd11 option, but I get a
different error:
 
: Parse error occurred - No SchemaFactory that implements the schema
language specified by: http://www.w3.org/XML/XMLSchema/v1.1 c
be loaded
lang.IllegalArgumentException: No SchemaFactory that implements the
schema language specified by: http://www.w3.org/XML/XMLSchema/
could be loaded
   at javax.xml.validation.SchemaFactory.newInstance(Unknown Source)
   at jaxp.SourceValidator.main(Unknown Source)
 
The package works if I leave out the -xsd11 flag and process using
schema 1.0.  
 
= Jim

 



Re: Using Schema 1.1 with SourceValidator example.

2012-03-08 Thread Michael Glavassevich

Did you place xml-apis.jar in your endorsed directory [1]?

[1] http://xerces.apache.org/xerces2-j/faq-general.html#faq-4

Michael Glavassevich
XML Technologies and WAS Development
IBM Toronto Lab
E-mail: mrgla...@ca.ibm.com
E-mail: mrgla...@apache.org

"Jim Barnett"  wrote on 03/08/2012 10:16:57 AM:

> Thanks.  That was certainly part of the problem.  I?ve downloaded
> the 1.1 beta package, and it now recognizes the ?xsd11 option, but I
> get a different error:
>
> : Parse error occurred - No SchemaFactory that implements the schema
> language specified by: http://www.w3.org/XML/XMLSchema/v1.1 c
> be loaded
> lang.IllegalArgumentException: No SchemaFactory that implements the
> schema language specified by: http://www.w3.org/XML/XMLSchema/
> could be loaded
>at javax.xml.validation.SchemaFactory.newInstance(Unknown Source)
>at jaxp.SourceValidator.main(Unknown Source)
>
> The package works if I leave out the ?xsd11 flag and process using
> schema 1.0.
>
> = Jim

Xerces-J and xml:id support

2012-03-08 Thread Jeff Powanda
After converting a small amount of XML content from DocBook 4.5 to DocBook 5, I 
tried generating output and was surprised to discover that Xerces-J 2.11 (the 
latest release) doesn't support xml:id. As a result, I get "XPointer resolution 
unsuccessful" for any XIncludes that reference an XPointer.

I've read other posts that suggest there's a patch somewhere that addresses 
this, but I haven't found a downloadable version of Xerces-J that includes the 
patch. Can anyone point me in the right direction?

I tried downloading the source for Xerces-J 2.11 and then building new JAR 
files with patched classes found here: 
https://issues.apache.org/jira/browse/XERCESJ-1113. However, I couldn't get 
Xerces-J to build successfully with several different JDK versions due to 
problems with org.apache.html.dom.HTMLElementImpl. I haven't tried later 
versions of the Xerces-J source from the Subversion Repository yet to see if 
they build successfully.

Any help would be appreciated.

Thanks in advance,
Jeff Powanda
Vocera Communications
(831) 882-5150



Re: Xerces-J and xml:id support

2012-03-08 Thread Michael Glavassevich
Hi Jeff,

Jeff Powanda  wrote on 03/08/2012 09:08:10 PM:

> After converting a small amount of XML content from DocBook 4.5 to
> DocBook 5, I tried generating output and was surprised to discover
> that Xerces-J 2.11 (the latest release) doesn't support xml:id. As a
> result, I get "XPointer resolution unsuccessful" for any XIncludes
> that reference an XPointer.
>
> I've read other posts that suggest there's a patch somewhere that
> addresses this, but I haven't found a downloadable version of
> Xerces-J that includes the patch. Can anyone point me in the right
direction?

xml:id support was developed as part of GSoC last year. The patch that was
contributed hasn't been applied to SVN yet and would probably need a bit of
polishing / clean-up first before that would happen.

> I tried downloading the source for Xerces-J 2.11 and then building
> new JAR files with patched classes found here: https://
> issues.apache.org/jira/browse/XERCESJ-1113. However, I couldn't get
> Xerces-J to build successfully with several different JDK versions
> due to problems with org.apache.html.dom.HTMLElementImpl. I haven't
> tried later versions of the Xerces-J source from the Subversion
> Repository yet to see if they build successfully.
>
> Any help would be appreciated.

Did you follow the build instructions here [1]? You need Xerces' build
tools.

> Thanks in advance,
> Jeff Powanda
> Vocera Communications
> (831) 882-5150

Thanks.

[1] http://xerces.apache.org/xerces2-j/faq-build.html#faq-2

Michael Glavassevich
XML Technologies and WAS Development
IBM Toronto Lab
E-mail: mrgla...@ca.ibm.com
E-mail: mrgla...@apache.org