Re: adoptNode and namespace prefix declarations

2014-12-04 Thread Eric J. Schwarzenbach
Nevermind... It does adopt over the namespace prefix declaration 
attributes just fine when the adopted-from Document is created by a 
namespace aware DocumentBuilder (I'd thought the one I been using was 
so, but I was mistaken).



On 12/02/2014 08:59 PM, Eric J. Schwarzenbach wrote:
Is it to be expected that adoptNode (on Document object) should drop 
namespace declaration attributes? (I saw something about a bug with 
attributes when adopting between Documents with and without deferred 
node expansion, but I flipped that flag and it didn't make any 
difference...and it is carrying over all the other other attributes.)


Thanks,

Eric

-
To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-users-h...@xerces.apache.org





-
To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-users-h...@xerces.apache.org



XMLCatalog: rewriteSystem doesn't work

2014-12-04 Thread markus.sticker.epos
Hello,

I tried to redirect my DTD just from the old to a new location using Xerces2J 
with Saxon and an XML Catalog. But Always I've got this error:
Parse catalog: C:/temp/catalog.xml
Loading catalog: C:/temp/catalog.xml
Default BASE: file:C:/temp/catalog.xml
override: no
OVERRIDE: no
rewriteURI: file:///zfhpsys

file:///X:/z186485_hpsys_pa_cr113019_revision_tracking/zfhpsys
REWRITE_URI: file:///zfhpsys
file:/X:/z186485_hpsys_pa_cr113019_revision_tracking/zfhpsys
rewriteURI: /

file:///X:/z186485_hpsys_pa_cr113019_revision_tracking/
REWRITE_URI: /
file:/X:/z186485_hpsys_pa_cr113019_revision_tracking/
rewriteSystem: /zfhpsys

file:///X:/z186485_hpsys_pa_cr113019_revision_tracking/zfhpsys
REWRITE_SYSTEM: /zfhpsys
file:/X:/z186485_hpsys_pa_cr113019_revision_tracking/zfhpsys
Failure reading file:
/X:/z186485_hpsys_pa_cr113019_revision_tracking/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku/example/revisons2.xml:
\zfhpsys\tool_int\software_doku\dokusystem\epic\custom\doctypes\XMLBlock\XMLBlock.dtd
(File not found)
So the substition doesn't work.
This is my catalog.xml:

http://www.oasis-
open.org/committees/entity/release/1.0/catalog.dtd">

 

 

And this is the XML-File:

]>

  Doc Name
  
[1.1] EDIT description
Er hörte leise Schritte hinter sich. 

  


The parameters of the commandline call:
-x org.apache.xml.resolver.tools.ResolvingXMLReader
-y org.apache.xml.resolver.tools.ResolvingXMLReader
-r org.apache.xml.resolver.tools.CatalogResolver
At least the CatalogManager.properties:
catalogs=C:/temp/catalog.xml
relative-catalogs=false
static-catalog=no
catalog-class-name=org.apache.xml.resolver.Resolver
verbosity=10
So the log tells me that the catalog has been read, but the SYSTEM has not been 
replaced. What did I wrong?
Thanks for your help.
Best regards
Markus