Problems with XMLCatalog and rewriteSystem

classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems with XMLCatalog and rewriteSystem

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:

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN" "http://www.oasis-    open.org/committees/entity/release/1.0/catalog.dtd">

<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"  prefer="system"> 

 <rewriteSystem systemIdStartString="/zfhpsys"    rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking/zfhpsys"/>

<rewriteURI    uriStartString="file:///zfhpsys"  rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking/zfhpsys"/>

 <rewriteURI    uriStartString="/"                rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking/"/>

</catalog>

And this is the XML-File:

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE XMLBlock SYSTEM "/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/XMLBlock/XMLBlock.dtd" [

<!ENTITY csv SYSTEM "/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku/example/sample_config.csv">]>

<XMLBlock DocID="bla">

  <Title if="(TEST)">Doc Name</Title>

  <Description>

    <Heading>[1.1] EDIT description</Heading>

    <Content if="(CANCEL_BUTTON)">Er hörte leise Schritte hinter sich. </Content>

  </Description>

</XMLBlock>

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?

Best regards

Markus

 

 

Mit freundlichen Grüßen/Kind regards

Markus Sticker
Forschung und Entwicklung ZF Konzern/Research and Development ZF Group
Infrastruktur/Infrastructure (DTEP4)

ZF Friedrichshafen AG
88038 Friedrichshafen, Deutschland/Germany
Telefon/Phone  +49 7541 77-7644, Telefax/Fax  +49 7541 77-907644

[hidden email]


Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr. Giorgio Behr
Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr. Konstantin Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm, Rolf Lutz

Sitz/Headquarters: Friedrichshafen
Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of the municipal court of Ulm HRB 630206

 


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Problems with XMLCatalog and rewriteSystem

Michael Kay
I'm afraid we're not really experts on catalogs here: Saxon is just invoking third-party software on your behalf, and you would (I assume) get the same problem trying to parse the file with Saxon taken out of the loop. I can't see what's wrong without trying to reproduce it (which won't be today). Perhaps someone else can help, or perhaps posting somewhere like StackOverflow would reach someone who understands the area better.

Michael Kay
Saxonica
+44 (0) 118 946 5893




On 4 Dec 2014, at 14:31, [hidden email] wrote:

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:

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN" "http://www.oasis-    open.org/committees/entity/release/1.0/catalog.dtd">

<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"  prefer="system"> 

 <rewriteSystem systemIdStartString="/zfhpsys"    rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking/zfhpsys"/>

<rewriteURI    uriStartString="file:///zfhpsys"  rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking/zfhpsys"/>

 <rewriteURI    uriStartString="/"                rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking/"/>

</catalog>

And this is the XML-File:

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE XMLBlock SYSTEM "/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/XMLBlock/XMLBlock.dtd" [

<!ENTITY csv SYSTEM "/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku/example/sample_config.csv">]>

<XMLBlock DocID="bla">

  <Title if="(TEST)">Doc Name</Title>

  <Description>

    <Heading>[1.1] EDIT description</Heading>

    <Content if="(CANCEL_BUTTON)">Er hörte leise Schritte hinter sich. </Content>

  </Description>

</XMLBlock>

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?

Best regards

Markus

 

 

Mit freundlichen Grüßen/Kind regards

Markus Sticker
Forschung und Entwicklung ZF Konzern/Research and Development ZF Group
Infrastruktur/Infrastructure (DTEP4)

ZF Friedrichshafen AG
88038 Friedrichshafen, Deutschland/Germany
Telefon/Phone  +49 7541 77-7644, Telefax/Fax  +49 7541 77-907644

[hidden email]


Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr. Giorgio Behr
Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr. Konstantin Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm, Rolf Lutz

Sitz/Headquarters: Friedrichshafen
Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of the municipal court of Ulm HRB 630206

 

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Problems with XMLCatalog and rewriteSystem

Dave Pawson-2
java -Xms1024m -cp
/myjava/saxon9pe.jar:/myjava/xercesImpl.jar:/myjava/xml-apis.jar:/myjava/resolver.jar:/sgml:/myjava/saxon9-sql.jar:/sgml
-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration
net.sf.saxon.Transform
-x:org.apache.xml.resolver.tools.ResolvingXMLReader
-y:org.apache.xml.resolver.tools.ResolvingXMLReader
-r:org.apache.xml.resolver.tools.CatalogResolver -s:<input>
-xsl:<stylesheet> -o:<output>

Calls on resolver (xerces), also same for parser
r: names the resolver.
HTH


On 4 December 2014 at 16:23, Michael Kay <[hidden email]> wrote:

> I'm afraid we're not really experts on catalogs here: Saxon is just invoking
> third-party software on your behalf, and you would (I assume) get the same
> problem trying to parse the file with Saxon taken out of the loop. I can't
> see what's wrong without trying to reproduce it (which won't be today).
> Perhaps someone else can help, or perhaps posting somewhere like
> StackOverflow would reach someone who understands the area better.
>
> Michael Kay
> Saxonica
> [hidden email]
> +44 (0) 118 946 5893
>
>
>
>
> On 4 Dec 2014, at 14:31, [hidden email] wrote:
>
> 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:
>
> <?xml version='1.0' encoding='UTF-8'?>
>
> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN"
> "http://www.oasis-    open.org/committees/entity/release/1.0/catalog.dtd">
>
> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
> prefer="system">
>
>  <rewriteSystem systemIdStartString="/zfhpsys"
> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking/zfhpsys"/>
>
> <rewriteURI    uriStartString="file:///zfhpsys"
> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking/zfhpsys"/>
>
>  <rewriteURI    uriStartString="/"
> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking/"/>
>
> </catalog>
>
> And this is the XML-File:
>
> <?xml version='1.0' encoding='UTF-8'?>
>
> <!DOCTYPE XMLBlock SYSTEM
> "/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/XMLBlock/XMLBlock.dtd"
> [
>
> <!ENTITY csv SYSTEM
> "/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku/example/sample_config.csv">]>
>
> <XMLBlock DocID="bla">
>
>   <Title if="(TEST)">Doc Name</Title>
>
>   <Description>
>
>     <Heading>[1.1] EDIT description</Heading>
>
>     <Content if="(CANCEL_BUTTON)">Er hörte leise Schritte hinter sich.
> </Content>
>
>   </Description>
>
> </XMLBlock>
>
> 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?
>
> Best regards
>
> Markus
>
>
>
>
>
> Mit freundlichen Grüßen/Kind regards
>
> Markus Sticker
> Forschung und Entwicklung ZF Konzern/Research and Development ZF Group
> Infrastruktur/Infrastructure (DTEP4)
>
> ZF Friedrichshafen AG
> 88038 Friedrichshafen, Deutschland/Germany
> Telefon/Phone  +49 7541 77-7644, Telefax/Fax  +49 7541 77-907644
> [hidden email]
>
>
> Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr.
> Giorgio Behr
> Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr.
> Konstantin Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm, Rolf Lutz
>
> Sitz/Headquarters: Friedrichshafen
> Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of the
> municipal court of Ulm HRB 630206
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk_______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help



--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Problems with XMLCatalog and rewriteSystem

markus.sticker.epos
Thanks for your help but  they are already set.
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

-----Ursprüngliche Nachricht-----
Von: Dave Pawson [mailto:[hidden email]]
Gesendet: Donnerstag, 4. Dezember 2014 17:40
An: Mailing list for the SAXON XSLT and XQuery processor
Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem

java -Xms1024m -cp
/myjava/saxon9pe.jar:/myjava/xercesImpl.jar:/myjava/xml-apis.jar:/myjava/resolver.jar:/sgml:/myjava/saxon9-sql.jar:/sgml
-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration
net.sf.saxon.Transform
-x:org.apache.xml.resolver.tools.ResolvingXMLReader
-y:org.apache.xml.resolver.tools.ResolvingXMLReader
-r:org.apache.xml.resolver.tools.CatalogResolver -s:<input> -xsl:<stylesheet> -o:<output>

Calls on resolver (xerces), also same for parser
r: names the resolver.
HTH


On 4 December 2014 at 16:23, Michael Kay <[hidden email]> wrote:

> I'm afraid we're not really experts on catalogs here: Saxon is just
> invoking third-party software on your behalf, and you would (I assume)
> get the same problem trying to parse the file with Saxon taken out of
> the loop. I can't see what's wrong without trying to reproduce it (which won't be today).
> Perhaps someone else can help, or perhaps posting somewhere like
> StackOverflow would reach someone who understands the area better.
>
> Michael Kay
> Saxonica
> [hidden email]
> +44 (0) 118 946 5893
>
>
>
>
> On 4 Dec 2014, at 14:31, [hidden email] wrote:
>
> 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\XMLBlo
> ck\XMLBlock.dtd
>
> (File not found)
>
> So the substition doesn't work.
>
> This is my catalog.xml:
>
> <?xml version='1.0' encoding='UTF-8'?>
>
> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN"
> "http://www.oasis-    open.org/committees/entity/release/1.0/catalog.dtd">
>
> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
> prefer="system">
>
>  <rewriteSystem systemIdStartString="/zfhpsys"
> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking/
> zfhpsys"/>
>
> <rewriteURI    uriStartString="file:///zfhpsys"
> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking/
> zfhpsys"/>
>
>  <rewriteURI    uriStartString="/"
> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking/
> "/>
>
> </catalog>
>
> And this is the XML-File:
>
> <?xml version='1.0' encoding='UTF-8'?>
>
> <!DOCTYPE XMLBlock SYSTEM
> "/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/XMLBlock/XMLBlock.dtd"
> [
>
> <!ENTITY csv SYSTEM
> "/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku
> /example/sample_config.csv">]>
>
> <XMLBlock DocID="bla">
>
>   <Title if="(TEST)">Doc Name</Title>
>
>   <Description>
>
>     <Heading>[1.1] EDIT description</Heading>
>
>     <Content if="(CANCEL_BUTTON)">Er hörte leise Schritte hinter sich.
> </Content>
>
>   </Description>
>
> </XMLBlock>
>
> 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?
>
> Best regards
>
> Markus
>
>
>
>
>
> Mit freundlichen Grüßen/Kind regards
>
> Markus Sticker
> Forschung und Entwicklung ZF Konzern/Research and Development ZF Group
> Infrastruktur/Infrastructure (DTEP4)
>
> ZF Friedrichshafen AG
> 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone  +49 7541
> 77-7644, Telefax/Fax  +49 7541 77-907644 [hidden email]
>
>
> Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr.
> Giorgio Behr
> Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr.
> Konstantin Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm, Rolf
> Lutz
>
> Sitz/Headquarters: Friedrichshafen
> Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of
> the municipal court of Ulm HRB 630206
>
>
>
> ----------------------------------------------------------------------
> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
> Server from Actuate! Instantly Supercharge Your Business Reports and
> Dashboards with Interactivity, Sharing, Native Excel Exports, App
> Integration & more Get technology previously reserved for
> billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
> clktrk_______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/ 
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help
>
>
>
> ----------------------------------------------------------------------
> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
> Server from Actuate! Instantly Supercharge Your Business Reports and
> Dashboards with Interactivity, Sharing, Native Excel Exports, App
> Integration & more Get technology previously reserved for
> billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
> clktrk _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/ 
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help



--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/ [hidden email] https://lists.sourceforge.net/lists/listinfo/saxon-help 
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Problems with XMLCatalog and rewriteSystem

Earl Hood
In reply to this post by Michael Kay
On Thu, Dec 4, 2014 at 10:23 AM, Michael Kay wrote:

> I'm afraid we're not really experts on catalogs here: Saxon is just invoking
> third-party software on your behalf, and you would (I assume) get the same
> problem trying to parse the file with Saxon taken out of the loop. I can't
> see what's wrong without trying to reproduce it (which won't be today).

Looks like a possible problem with the XML Commons resolver library.
There is a history of bugs dealing with Windows absolute pathnames, and
based on the message you got, it looks like the rewrite code is failing
since the resulting pathname starts with "/X:/..."

It may be best for the OP to create a simple test case, likely without
the need to use Saxon, just a basic parse of the file, and post a
message to the XML commons mailing list
<https://xerces.apache.org/xml-commons/index.html#mailing>

--ewh

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Problems with XMLCatalog and rewriteSystem

Dave Pawson-2
In reply to this post by markus.sticker.epos
And you had the jars in the path?
Works for me, resolver too.

regards

On 4 December 2014 at 16:44,  <[hidden email]> wrote:

> Thanks for your help but  they are already set.
> 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
>
> -----Ursprüngliche Nachricht-----
> Von: Dave Pawson [mailto:[hidden email]]
> Gesendet: Donnerstag, 4. Dezember 2014 17:40
> An: Mailing list for the SAXON XSLT and XQuery processor
> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>
> java -Xms1024m -cp
> /myjava/saxon9pe.jar:/myjava/xercesImpl.jar:/myjava/xml-apis.jar:/myjava/resolver.jar:/sgml:/myjava/saxon9-sql.jar:/sgml
> -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration
> net.sf.saxon.Transform
> -x:org.apache.xml.resolver.tools.ResolvingXMLReader
> -y:org.apache.xml.resolver.tools.ResolvingXMLReader
> -r:org.apache.xml.resolver.tools.CatalogResolver -s:<input> -xsl:<stylesheet> -o:<output>
>
> Calls on resolver (xerces), also same for parser
> r: names the resolver.
> HTH
>
>
> On 4 December 2014 at 16:23, Michael Kay <[hidden email]> wrote:
>> I'm afraid we're not really experts on catalogs here: Saxon is just
>> invoking third-party software on your behalf, and you would (I assume)
>> get the same problem trying to parse the file with Saxon taken out of
>> the loop. I can't see what's wrong without trying to reproduce it (which won't be today).
>> Perhaps someone else can help, or perhaps posting somewhere like
>> StackOverflow would reach someone who understands the area better.
>>
>> Michael Kay
>> Saxonica
>> [hidden email]
>> +44 (0) 118 946 5893
>>
>>
>>
>>
>> On 4 Dec 2014, at 14:31, [hidden email] wrote:
>>
>> 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\XMLBlo
>> ck\XMLBlock.dtd
>>
>> (File not found)
>>
>> So the substition doesn't work.
>>
>> This is my catalog.xml:
>>
>> <?xml version='1.0' encoding='UTF-8'?>
>>
>> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN"
>> "http://www.oasis-    open.org/committees/entity/release/1.0/catalog.dtd">
>>
>> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
>> prefer="system">
>>
>>  <rewriteSystem systemIdStartString="/zfhpsys"
>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking/
>> zfhpsys"/>
>>
>> <rewriteURI    uriStartString="file:///zfhpsys"
>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking/
>> zfhpsys"/>
>>
>>  <rewriteURI    uriStartString="/"
>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking/
>> "/>
>>
>> </catalog>
>>
>> And this is the XML-File:
>>
>> <?xml version='1.0' encoding='UTF-8'?>
>>
>> <!DOCTYPE XMLBlock SYSTEM
>> "/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/XMLBlock/XMLBlock.dtd"
>> [
>>
>> <!ENTITY csv SYSTEM
>> "/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku
>> /example/sample_config.csv">]>
>>
>> <XMLBlock DocID="bla">
>>
>>   <Title if="(TEST)">Doc Name</Title>
>>
>>   <Description>
>>
>>     <Heading>[1.1] EDIT description</Heading>
>>
>>     <Content if="(CANCEL_BUTTON)">Er hörte leise Schritte hinter sich.
>> </Content>
>>
>>   </Description>
>>
>> </XMLBlock>
>>
>> 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?
>>
>> Best regards
>>
>> Markus
>>
>>
>>
>>
>>
>> Mit freundlichen Grüßen/Kind regards
>>
>> Markus Sticker
>> Forschung und Entwicklung ZF Konzern/Research and Development ZF Group
>> Infrastruktur/Infrastructure (DTEP4)
>>
>> ZF Friedrichshafen AG
>> 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone  +49 7541
>> 77-7644, Telefax/Fax  +49 7541 77-907644 [hidden email]
>>
>>
>> Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr.
>> Giorgio Behr
>> Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr.
>> Konstantin Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm, Rolf
>> Lutz
>>
>> Sitz/Headquarters: Friedrichshafen
>> Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of
>> the municipal court of Ulm HRB 630206
>>
>>
>>
>> ----------------------------------------------------------------------
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>> clktrk_______________________________________________
>> saxon-help mailing list archived at http://saxon.markmail.org/
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>
>>
>>
>> ----------------------------------------------------------------------
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>> clktrk _______________________________________________
>> saxon-help mailing list archived at http://saxon.markmail.org/
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>
>
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> Docbook FAQ.
> http://www.dpawson.co.uk
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/ [hidden email] https://lists.sourceforge.net/lists/listinfo/saxon-help
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help



--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Problems with XMLCatalog and rewriteSystem

Michael Kay
In reply to this post by Dave Pawson-2
In recent Saxon releases there's actually simpler syntax to invoke a resolver:

-catalog:filenames

and when combined with -t it switches on resolver logging.

But I don't think that's the problem here. The resolver is being invoked OK; it's just not doing what's wanted.

Michael Kay
Saxonica
[hidden email]
+44 (0) 118 946 5893




On 4 Dec 2014, at 16:39, Dave Pawson <[hidden email]> wrote:

> java -Xms1024m -cp
> /myjava/saxon9pe.jar:/myjava/xercesImpl.jar:/myjava/xml-apis.jar:/myjava/resolver.jar:/sgml:/myjava/saxon9-sql.jar:/sgml
> -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration
> net.sf.saxon.Transform
> -x:org.apache.xml.resolver.tools.ResolvingXMLReader
> -y:org.apache.xml.resolver.tools.ResolvingXMLReader
> -r:org.apache.xml.resolver.tools.CatalogResolver -s:<input>
> -xsl:<stylesheet> -o:<output>
>
> Calls on resolver (xerces), also same for parser
> r: names the resolver.
> HTH
>


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Problems with XMLCatalog and rewriteSystem

Jirka Kosek
In reply to this post by markus.sticker.epos
On 4.12.2014 15:31, [hidden email] wrote:
> <?xml version='1.0' encoding='UTF-8'?>
> <!DOCTYPE XMLBlock SYSTEM "/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/XMLBlock/XMLBlock.dtd" [

It could be that XML parser tries to make this URI absolute first and
then unsuccesfully tries to lookup absolute URI in the catalog. You
should enable the most verbose debugging messages and see if and how is
being this URI resolved.

                                        Jirka

--
------------------------------------------------------------------
  Jirka Kosek      e-mail: [hidden email]      http://xmlguru.cz
------------------------------------------------------------------
     Professional XML and Web consulting and training services
DocBook/DITA customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
------------------------------------------------------------------
    Bringing you XML Prague conference    http://xmlprague.cz
------------------------------------------------------------------


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 

signature.asc (203 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Problems with XMLCatalog and rewriteSystem

markus.sticker.epos
In reply to this post by Dave Pawson-2
What kind of OS di you use?
Best regards

Markus

-----Ursprüngliche Nachricht-----
Von: Dave Pawson [mailto:[hidden email]]
Gesendet: Donnerstag, 4. Dezember 2014 18:45
An: Mailing list for the SAXON XSLT and XQuery processor
Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem

And you had the jars in the path?
Works for me, resolver too.

regards

On 4 December 2014 at 16:44,  <[hidden email]> wrote:

> Thanks for your help but  they are already set.
> 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
>
> -----Ursprüngliche Nachricht-----
> Von: Dave Pawson [mailto:[hidden email]]
> Gesendet: Donnerstag, 4. Dezember 2014 17:40
> An: Mailing list for the SAXON XSLT and XQuery processor
> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>
> java -Xms1024m -cp
> /myjava/saxon9pe.jar:/myjava/xercesImpl.jar:/myjava/xml-apis.jar:/myja
> va/resolver.jar:/sgml:/myjava/saxon9-sql.jar:/sgml
> -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerce
> s.parsers.XIncludeParserConfiguration
> net.sf.saxon.Transform
> -x:org.apache.xml.resolver.tools.ResolvingXMLReader
> -y:org.apache.xml.resolver.tools.ResolvingXMLReader
> -r:org.apache.xml.resolver.tools.CatalogResolver -s:<input>
> -xsl:<stylesheet> -o:<output>
>
> Calls on resolver (xerces), also same for parser
> r: names the resolver.
> HTH
>
>
> On 4 December 2014 at 16:23, Michael Kay <[hidden email]> wrote:
>> I'm afraid we're not really experts on catalogs here: Saxon is just
>> invoking third-party software on your behalf, and you would (I
>> assume) get the same problem trying to parse the file with Saxon
>> taken out of the loop. I can't see what's wrong without trying to reproduce it (which won't be today).
>> Perhaps someone else can help, or perhaps posting somewhere like
>> StackOverflow would reach someone who understands the area better.
>>
>> Michael Kay
>> Saxonica
>> [hidden email]
>> +44 (0) 118 946 5893
>>
>>
>>
>>
>> On 4 Dec 2014, at 14:31, [hidden email] wrote:
>>
>> 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\XMLBl
>> o
>> ck\XMLBlock.dtd
>>
>> (File not found)
>>
>> So the substition doesn't work.
>>
>> This is my catalog.xml:
>>
>> <?xml version='1.0' encoding='UTF-8'?>
>>
>> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN"
>> "http://www.oasis-    open.org/committees/entity/release/1.0/catalog.dtd">
>>
>> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
>> prefer="system">
>>
>>  <rewriteSystem systemIdStartString="/zfhpsys"
>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking
>> /
>> zfhpsys"/>
>>
>> <rewriteURI    uriStartString="file:///zfhpsys"
>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking
>> /
>> zfhpsys"/>
>>
>>  <rewriteURI    uriStartString="/"
>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking
>> /
>> "/>
>>
>> </catalog>
>>
>> And this is the XML-File:
>>
>> <?xml version='1.0' encoding='UTF-8'?>
>>
>> <!DOCTYPE XMLBlock SYSTEM
>> "/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/XMLBlock/XMLBlock.dtd"
>> [
>>
>> <!ENTITY csv SYSTEM
>> "/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_dok
>> u
>> /example/sample_config.csv">]>
>>
>> <XMLBlock DocID="bla">
>>
>>   <Title if="(TEST)">Doc Name</Title>
>>
>>   <Description>
>>
>>     <Heading>[1.1] EDIT description</Heading>
>>
>>     <Content if="(CANCEL_BUTTON)">Er hörte leise Schritte hinter sich.
>> </Content>
>>
>>   </Description>
>>
>> </XMLBlock>
>>
>> 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?
>>
>> Best regards
>>
>> Markus
>>
>>
>>
>>
>>
>> Mit freundlichen Grüßen/Kind regards
>>
>> Markus Sticker
>> Forschung und Entwicklung ZF Konzern/Research and Development ZF
>> Group Infrastruktur/Infrastructure (DTEP4)
>>
>> ZF Friedrichshafen AG
>> 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone  +49 7541
>> 77-7644, Telefax/Fax  +49 7541 77-907644 [hidden email]
>>
>>
>> Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr.
>> Giorgio Behr
>> Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr.
>> Konstantin Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm, Rolf
>> Lutz
>>
>> Sitz/Headquarters: Friedrichshafen
>> Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of
>> the municipal court of Ulm HRB 630206
>>
>>
>>
>> ---------------------------------------------------------------------
>> -
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>> clktrk_______________________________________________
>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>
>>
>>
>> ---------------------------------------------------------------------
>> -
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>> clktrk _______________________________________________
>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>
>
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> Docbook FAQ.
> http://www.dpawson.co.uk
>
> ----------------------------------------------------------------------
> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
> Server from Actuate! Instantly Supercharge Your Business Reports and
> Dashboards with Interactivity, Sharing, Native Excel Exports, App
> Integration & more Get technology previously reserved for
> billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
> clktrk _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/ 
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help
> ----------------------------------------------------------------------
> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
> Server from Actuate! Instantly Supercharge Your Business Reports and
> Dashboards with Interactivity, Sharing, Native Excel Exports, App
> Integration & more Get technology previously reserved for
> billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
> clktrk _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/ 
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help



--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/ [hidden email] https://lists.sourceforge.net/lists/listinfo/saxon-help 
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Problems with XMLCatalog and rewriteSystem

markus.sticker.epos
In reply to this post by Dave Pawson-2
Maybe. Something wrong here?
This is the CatalogManager.properties:
catalogs=C:/temp/catalog_serna.xml
relative-catalogs=yes
static-catalog=no
catalog-class-name=org.apache.xml.resolver.Resolver (???)
verbosity=99



-----Ursprüngliche Nachricht-----
Von: Dave Pawson [mailto:[hidden email]]
Gesendet: Donnerstag, 4. Dezember 2014 18:45
An: Mailing list for the SAXON XSLT and XQuery processor
Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem

And you had the jars in the path?
Works for me, resolver too.

regards

On 4 December 2014 at 16:44,  <[hidden email]> wrote:

> Thanks for your help but  they are already set.
> 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
>
> -----Ursprüngliche Nachricht-----
> Von: Dave Pawson [mailto:[hidden email]]
> Gesendet: Donnerstag, 4. Dezember 2014 17:40
> An: Mailing list for the SAXON XSLT and XQuery processor
> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>
> java -Xms1024m -cp
> /myjava/saxon9pe.jar:/myjava/xercesImpl.jar:/myjava/xml-apis.jar:/myja
> va/resolver.jar:/sgml:/myjava/saxon9-sql.jar:/sgml
> -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerce
> s.parsers.XIncludeParserConfiguration
> net.sf.saxon.Transform
> -x:org.apache.xml.resolver.tools.ResolvingXMLReader
> -y:org.apache.xml.resolver.tools.ResolvingXMLReader
> -r:org.apache.xml.resolver.tools.CatalogResolver -s:<input>
> -xsl:<stylesheet> -o:<output>
>
> Calls on resolver (xerces), also same for parser
> r: names the resolver.
> HTH
>
>
> On 4 December 2014 at 16:23, Michael Kay <[hidden email]> wrote:
>> I'm afraid we're not really experts on catalogs here: Saxon is just
>> invoking third-party software on your behalf, and you would (I
>> assume) get the same problem trying to parse the file with Saxon
>> taken out of the loop. I can't see what's wrong without trying to reproduce it (which won't be today).
>> Perhaps someone else can help, or perhaps posting somewhere like
>> StackOverflow would reach someone who understands the area better.
>>
>> Michael Kay
>> Saxonica
>> [hidden email]
>> +44 (0) 118 946 5893
>>
>>
>>
>>
>> On 4 Dec 2014, at 14:31, [hidden email] wrote:
>>
>> 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\XMLBl
>> o
>> ck\XMLBlock.dtd
>>
>> (File not found)
>>
>> So the substition doesn't work.
>>
>> This is my catalog.xml:
>>
>> <?xml version='1.0' encoding='UTF-8'?>
>>
>> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN"
>> "http://www.oasis-    open.org/committees/entity/release/1.0/catalog.dtd">
>>
>> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
>> prefer="system">
>>
>>  <rewriteSystem systemIdStartString="/zfhpsys"
>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking
>> /
>> zfhpsys"/>
>>
>> <rewriteURI    uriStartString="file:///zfhpsys"
>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking
>> /
>> zfhpsys"/>
>>
>>  <rewriteURI    uriStartString="/"
>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking
>> /
>> "/>
>>
>> </catalog>
>>
>> And this is the XML-File:
>>
>> <?xml version='1.0' encoding='UTF-8'?>
>>
>> <!DOCTYPE XMLBlock SYSTEM
>> "/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/XMLBlock/XMLBlock.dtd"
>> [
>>
>> <!ENTITY csv SYSTEM
>> "/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_dok
>> u
>> /example/sample_config.csv">]>
>>
>> <XMLBlock DocID="bla">
>>
>>   <Title if="(TEST)">Doc Name</Title>
>>
>>   <Description>
>>
>>     <Heading>[1.1] EDIT description</Heading>
>>
>>     <Content if="(CANCEL_BUTTON)">Er hörte leise Schritte hinter sich.
>> </Content>
>>
>>   </Description>
>>
>> </XMLBlock>
>>
>> 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?
>>
>> Best regards
>>
>> Markus
>>
>>
>>
>>
>>
>> Mit freundlichen Grüßen/Kind regards
>>
>> Markus Sticker
>> Forschung und Entwicklung ZF Konzern/Research and Development ZF
>> Group Infrastruktur/Infrastructure (DTEP4)
>>
>> ZF Friedrichshafen AG
>> 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone  +49 7541
>> 77-7644, Telefax/Fax  +49 7541 77-907644 [hidden email]
>>
>>
>> Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr.
>> Giorgio Behr
>> Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr.
>> Konstantin Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm, Rolf
>> Lutz
>>
>> Sitz/Headquarters: Friedrichshafen
>> Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of
>> the municipal court of Ulm HRB 630206
>>
>>
>>
>> ---------------------------------------------------------------------
>> -
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>> clktrk_______________________________________________
>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>
>>
>>
>> ---------------------------------------------------------------------
>> -
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>> clktrk _______________________________________________
>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>
>
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> Docbook FAQ.
> http://www.dpawson.co.uk
>
> ----------------------------------------------------------------------
> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
> Server from Actuate! Instantly Supercharge Your Business Reports and
> Dashboards with Interactivity, Sharing, Native Excel Exports, App
> Integration & more Get technology previously reserved for
> billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
> clktrk _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/ 
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help
> ----------------------------------------------------------------------
> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
> Server from Actuate! Instantly Supercharge Your Business Reports and
> Dashboards with Interactivity, Sharing, Native Excel Exports, App
> Integration & more Get technology previously reserved for
> billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
> clktrk _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/ 
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help



--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/ [hidden email] https://lists.sourceforge.net/lists/listinfo/saxon-help 
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Problems with XMLCatalog and rewriteSystem

Dave Pawson-2
In reply to this post by markus.sticker.epos
This is on Linux, but same on windows, just s;/;\;

I do wish Mike would remain consistent with his cmd line param syntax.

regards

On 5 December 2014 at 07:15,  <[hidden email]> wrote:

> What kind of OS di you use?
> Best regards
>
> Markus
>
> -----Ursprüngliche Nachricht-----
> Von: Dave Pawson [mailto:[hidden email]]
> Gesendet: Donnerstag, 4. Dezember 2014 18:45
> An: Mailing list for the SAXON XSLT and XQuery processor
> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>
> And you had the jars in the path?
> Works for me, resolver too.
>
> regards
>
> On 4 December 2014 at 16:44,  <[hidden email]> wrote:
>> Thanks for your help but  they are already set.
>> 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
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Dave Pawson [mailto:[hidden email]]
>> Gesendet: Donnerstag, 4. Dezember 2014 17:40
>> An: Mailing list for the SAXON XSLT and XQuery processor
>> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>>
>> java -Xms1024m -cp
>> /myjava/saxon9pe.jar:/myjava/xercesImpl.jar:/myjava/xml-apis.jar:/myja
>> va/resolver.jar:/sgml:/myjava/saxon9-sql.jar:/sgml
>> -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerce
>> s.parsers.XIncludeParserConfiguration
>> net.sf.saxon.Transform
>> -x:org.apache.xml.resolver.tools.ResolvingXMLReader
>> -y:org.apache.xml.resolver.tools.ResolvingXMLReader
>> -r:org.apache.xml.resolver.tools.CatalogResolver -s:<input>
>> -xsl:<stylesheet> -o:<output>
>>
>> Calls on resolver (xerces), also same for parser
>> r: names the resolver.
>> HTH
>>
>>
>> On 4 December 2014 at 16:23, Michael Kay <[hidden email]> wrote:
>>> I'm afraid we're not really experts on catalogs here: Saxon is just
>>> invoking third-party software on your behalf, and you would (I
>>> assume) get the same problem trying to parse the file with Saxon
>>> taken out of the loop. I can't see what's wrong without trying to reproduce it (which won't be today).
>>> Perhaps someone else can help, or perhaps posting somewhere like
>>> StackOverflow would reach someone who understands the area better.
>>>
>>> Michael Kay
>>> Saxonica
>>> [hidden email]
>>> +44 (0) 118 946 5893
>>>
>>>
>>>
>>>
>>> On 4 Dec 2014, at 14:31, [hidden email] wrote:
>>>
>>> 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\XMLBl
>>> o
>>> ck\XMLBlock.dtd
>>>
>>> (File not found)
>>>
>>> So the substition doesn't work.
>>>
>>> This is my catalog.xml:
>>>
>>> <?xml version='1.0' encoding='UTF-8'?>
>>>
>>> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN"
>>> "http://www.oasis-    open.org/committees/entity/release/1.0/catalog.dtd">
>>>
>>> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
>>> prefer="system">
>>>
>>>  <rewriteSystem systemIdStartString="/zfhpsys"
>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking
>>> /
>>> zfhpsys"/>
>>>
>>> <rewriteURI    uriStartString="file:///zfhpsys"
>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking
>>> /
>>> zfhpsys"/>
>>>
>>>  <rewriteURI    uriStartString="/"
>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracking
>>> /
>>> "/>
>>>
>>> </catalog>
>>>
>>> And this is the XML-File:
>>>
>>> <?xml version='1.0' encoding='UTF-8'?>
>>>
>>> <!DOCTYPE XMLBlock SYSTEM
>>> "/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/XMLBlock/XMLBlock.dtd"
>>> [
>>>
>>> <!ENTITY csv SYSTEM
>>> "/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_dok
>>> u
>>> /example/sample_config.csv">]>
>>>
>>> <XMLBlock DocID="bla">
>>>
>>>   <Title if="(TEST)">Doc Name</Title>
>>>
>>>   <Description>
>>>
>>>     <Heading>[1.1] EDIT description</Heading>
>>>
>>>     <Content if="(CANCEL_BUTTON)">Er hörte leise Schritte hinter sich.
>>> </Content>
>>>
>>>   </Description>
>>>
>>> </XMLBlock>
>>>
>>> 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?
>>>
>>> Best regards
>>>
>>> Markus
>>>
>>>
>>>
>>>
>>>
>>> Mit freundlichen Grüßen/Kind regards
>>>
>>> Markus Sticker
>>> Forschung und Entwicklung ZF Konzern/Research and Development ZF
>>> Group Infrastruktur/Infrastructure (DTEP4)
>>>
>>> ZF Friedrichshafen AG
>>> 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone  +49 7541
>>> 77-7644, Telefax/Fax  +49 7541 77-907644 [hidden email]
>>>
>>>
>>> Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr.
>>> Giorgio Behr
>>> Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr.
>>> Konstantin Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm, Rolf
>>> Lutz
>>>
>>> Sitz/Headquarters: Friedrichshafen
>>> Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of
>>> the municipal court of Ulm HRB 630206
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> -
>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>> Server from Actuate! Instantly Supercharge Your Business Reports and
>>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>>> Integration & more Get technology previously reserved for
>>> billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>> clktrk_______________________________________________
>>> saxon-help mailing list archived at http://saxon.markmail.org/
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> -
>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>> Server from Actuate! Instantly Supercharge Your Business Reports and
>>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>>> Integration & more Get technology previously reserved for
>>> billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>> clktrk _______________________________________________
>>> saxon-help mailing list archived at http://saxon.markmail.org/
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>
>>
>>
>> --
>> Dave Pawson
>> XSLT XSL-FO FAQ.
>> Docbook FAQ.
>> http://www.dpawson.co.uk
>>
>> ----------------------------------------------------------------------
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>> clktrk _______________________________________________
>> saxon-help mailing list archived at http://saxon.markmail.org/
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>> ----------------------------------------------------------------------
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>> clktrk _______________________________________________
>> saxon-help mailing list archived at http://saxon.markmail.org/
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>
>
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> Docbook FAQ.
> http://www.dpawson.co.uk
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/ [hidden email] https://lists.sourceforge.net/lists/listinfo/saxon-help
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help



--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Problems with XMLCatalog and rewriteSystem

markus.sticker.epos
What do you mean with " s;/;\;" are there paramters to set?

-----Ursprüngliche Nachricht-----
Von: Dave Pawson [mailto:[hidden email]]
Gesendet: Freitag, 5. Dezember 2014 09:02
An: Mailing list for the SAXON XSLT and XQuery processor
Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem

This is on Linux, but same on windows, just s;/;\;

I do wish Mike would remain consistent with his cmd line param syntax.

regards

On 5 December 2014 at 07:15,  <[hidden email]> wrote:

> What kind of OS di you use?
> Best regards
>
> Markus
>
> -----Ursprüngliche Nachricht-----
> Von: Dave Pawson [mailto:[hidden email]]
> Gesendet: Donnerstag, 4. Dezember 2014 18:45
> An: Mailing list for the SAXON XSLT and XQuery processor
> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>
> And you had the jars in the path?
> Works for me, resolver too.
>
> regards
>
> On 4 December 2014 at 16:44,  <[hidden email]> wrote:
>> Thanks for your help but  they are already set.
>> 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
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Dave Pawson [mailto:[hidden email]]
>> Gesendet: Donnerstag, 4. Dezember 2014 17:40
>> An: Mailing list for the SAXON XSLT and XQuery processor
>> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>>
>> java -Xms1024m -cp
>> /myjava/saxon9pe.jar:/myjava/xercesImpl.jar:/myjava/xml-apis.jar:/myj
>> a va/resolver.jar:/sgml:/myjava/saxon9-sql.jar:/sgml
>> -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerc
>> e s.parsers.XIncludeParserConfiguration
>> net.sf.saxon.Transform
>> -x:org.apache.xml.resolver.tools.ResolvingXMLReader
>> -y:org.apache.xml.resolver.tools.ResolvingXMLReader
>> -r:org.apache.xml.resolver.tools.CatalogResolver -s:<input>
>> -xsl:<stylesheet> -o:<output>
>>
>> Calls on resolver (xerces), also same for parser
>> r: names the resolver.
>> HTH
>>
>>
>> On 4 December 2014 at 16:23, Michael Kay <[hidden email]> wrote:
>>> I'm afraid we're not really experts on catalogs here: Saxon is just
>>> invoking third-party software on your behalf, and you would (I
>>> assume) get the same problem trying to parse the file with Saxon
>>> taken out of the loop. I can't see what's wrong without trying to reproduce it (which won't be today).
>>> Perhaps someone else can help, or perhaps posting somewhere like
>>> StackOverflow would reach someone who understands the area better.
>>>
>>> Michael Kay
>>> Saxonica
>>> [hidden email]
>>> +44 (0) 118 946 5893
>>>
>>>
>>>
>>>
>>> On 4 Dec 2014, at 14:31, [hidden email] wrote:
>>>
>>> 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\XMLB
>>> l
>>> o
>>> ck\XMLBlock.dtd
>>>
>>> (File not found)
>>>
>>> So the substition doesn't work.
>>>
>>> This is my catalog.xml:
>>>
>>> <?xml version='1.0' encoding='UTF-8'?>
>>>
>>> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN"
>>> "http://www.oasis-    open.org/committees/entity/release/1.0/catalog.dtd">
>>>
>>> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
>>> prefer="system">
>>>
>>>  <rewriteSystem systemIdStartString="/zfhpsys"
>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_trackin
>>> g
>>> /
>>> zfhpsys"/>
>>>
>>> <rewriteURI    uriStartString="file:///zfhpsys"
>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_trackin
>>> g
>>> /
>>> zfhpsys"/>
>>>
>>>  <rewriteURI    uriStartString="/"
>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_trackin
>>> g
>>> /
>>> "/>
>>>
>>> </catalog>
>>>
>>> And this is the XML-File:
>>>
>>> <?xml version='1.0' encoding='UTF-8'?>
>>>
>>> <!DOCTYPE XMLBlock SYSTEM
>>> "/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/XMLBlock/XMLBlock.dtd"
>>> [
>>>
>>> <!ENTITY csv SYSTEM
>>> "/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_do
>>> k
>>> u
>>> /example/sample_config.csv">]>
>>>
>>> <XMLBlock DocID="bla">
>>>
>>>   <Title if="(TEST)">Doc Name</Title>
>>>
>>>   <Description>
>>>
>>>     <Heading>[1.1] EDIT description</Heading>
>>>
>>>     <Content if="(CANCEL_BUTTON)">Er hörte leise Schritte hinter sich.
>>> </Content>
>>>
>>>   </Description>
>>>
>>> </XMLBlock>
>>>
>>> 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?
>>>
>>> Best regards
>>>
>>> Markus
>>>
>>>
>>>
>>>
>>>
>>> Mit freundlichen Grüßen/Kind regards
>>>
>>> Markus Sticker
>>> Forschung und Entwicklung ZF Konzern/Research and Development ZF
>>> Group Infrastruktur/Infrastructure (DTEP4)
>>>
>>> ZF Friedrichshafen AG
>>> 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone  +49 7541
>>> 77-7644, Telefax/Fax  +49 7541 77-907644 [hidden email]
>>>
>>>
>>> Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr.
>>> Giorgio Behr
>>> Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr.
>>> Konstantin Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm, Rolf
>>> Lutz
>>>
>>> Sitz/Headquarters: Friedrichshafen
>>> Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of
>>> the municipal court of Ulm HRB 630206
>>>
>>>
>>>
>>> --------------------------------------------------------------------
>>> -
>>> -
>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>> Server from Actuate! Instantly Supercharge Your Business Reports and
>>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>>> Integration & more Get technology previously reserved for
>>> billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>> clktrk_______________________________________________
>>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>>
>>>
>>>
>>> --------------------------------------------------------------------
>>> -
>>> -
>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>> Server from Actuate! Instantly Supercharge Your Business Reports and
>>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>>> Integration & more Get technology previously reserved for
>>> billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>> clktrk _______________________________________________
>>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>
>>
>>
>> --
>> Dave Pawson
>> XSLT XSL-FO FAQ.
>> Docbook FAQ.
>> http://www.dpawson.co.uk
>>
>> ---------------------------------------------------------------------
>> -
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>> clktrk _______________________________________________
>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>> ---------------------------------------------------------------------
>> -
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>> clktrk _______________________________________________
>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>
>
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> Docbook FAQ.
> http://www.dpawson.co.uk
>
> ----------------------------------------------------------------------
> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
> Server from Actuate! Instantly Supercharge Your Business Reports and
> Dashboards with Interactivity, Sharing, Native Excel Exports, App
> Integration & more Get technology previously reserved for
> billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
> clktrk _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/ 
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help
> ----------------------------------------------------------------------
> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
> Server from Actuate! Instantly Supercharge Your Business Reports and
> Dashboards with Interactivity, Sharing, Native Excel Exports, App
> Integration & more Get technology previously reserved for
> billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
> clktrk _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/ 
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help



--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/ [hidden email] https://lists.sourceforge.net/lists/listinfo/saxon-help 
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Problems with XMLCatalog and rewriteSystem

Dave Pawson-2
change directory sep from forward slash to backslash,
also java, change path element from colon to semicolon.



On 5 December 2014 at 08:08,  <[hidden email]> wrote:

> What do you mean with " s;/;\;" are there paramters to set?
>
> -----Ursprüngliche Nachricht-----
> Von: Dave Pawson [mailto:[hidden email]]
> Gesendet: Freitag, 5. Dezember 2014 09:02
> An: Mailing list for the SAXON XSLT and XQuery processor
> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>
> This is on Linux, but same on windows, just s;/;\;
>
> I do wish Mike would remain consistent with his cmd line param syntax.
>
> regards
>
> On 5 December 2014 at 07:15,  <[hidden email]> wrote:
>> What kind of OS di you use?
>> Best regards
>>
>> Markus
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Dave Pawson [mailto:[hidden email]]
>> Gesendet: Donnerstag, 4. Dezember 2014 18:45
>> An: Mailing list for the SAXON XSLT and XQuery processor
>> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>>
>> And you had the jars in the path?
>> Works for me, resolver too.
>>
>> regards
>>
>> On 4 December 2014 at 16:44,  <[hidden email]> wrote:
>>> Thanks for your help but  they are already set.
>>> 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
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Dave Pawson [mailto:[hidden email]]
>>> Gesendet: Donnerstag, 4. Dezember 2014 17:40
>>> An: Mailing list for the SAXON XSLT and XQuery processor
>>> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>>>
>>> java -Xms1024m -cp
>>> /myjava/saxon9pe.jar:/myjava/xercesImpl.jar:/myjava/xml-apis.jar:/myj
>>> a va/resolver.jar:/sgml:/myjava/saxon9-sql.jar:/sgml
>>> -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerc
>>> e s.parsers.XIncludeParserConfiguration
>>> net.sf.saxon.Transform
>>> -x:org.apache.xml.resolver.tools.ResolvingXMLReader
>>> -y:org.apache.xml.resolver.tools.ResolvingXMLReader
>>> -r:org.apache.xml.resolver.tools.CatalogResolver -s:<input>
>>> -xsl:<stylesheet> -o:<output>
>>>
>>> Calls on resolver (xerces), also same for parser
>>> r: names the resolver.
>>> HTH
>>>
>>>
>>> On 4 December 2014 at 16:23, Michael Kay <[hidden email]> wrote:
>>>> I'm afraid we're not really experts on catalogs here: Saxon is just
>>>> invoking third-party software on your behalf, and you would (I
>>>> assume) get the same problem trying to parse the file with Saxon
>>>> taken out of the loop. I can't see what's wrong without trying to reproduce it (which won't be today).
>>>> Perhaps someone else can help, or perhaps posting somewhere like
>>>> StackOverflow would reach someone who understands the area better.
>>>>
>>>> Michael Kay
>>>> Saxonica
>>>> [hidden email]
>>>> +44 (0) 118 946 5893
>>>>
>>>>
>>>>
>>>>
>>>> On 4 Dec 2014, at 14:31, [hidden email] wrote:
>>>>
>>>> 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\XMLB
>>>> l
>>>> o
>>>> ck\XMLBlock.dtd
>>>>
>>>> (File not found)
>>>>
>>>> So the substition doesn't work.
>>>>
>>>> This is my catalog.xml:
>>>>
>>>> <?xml version='1.0' encoding='UTF-8'?>
>>>>
>>>> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN"
>>>> "http://www.oasis-    open.org/committees/entity/release/1.0/catalog.dtd">
>>>>
>>>> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
>>>> prefer="system">
>>>>
>>>>  <rewriteSystem systemIdStartString="/zfhpsys"
>>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_trackin
>>>> g
>>>> /
>>>> zfhpsys"/>
>>>>
>>>> <rewriteURI    uriStartString="file:///zfhpsys"
>>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_trackin
>>>> g
>>>> /
>>>> zfhpsys"/>
>>>>
>>>>  <rewriteURI    uriStartString="/"
>>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_trackin
>>>> g
>>>> /
>>>> "/>
>>>>
>>>> </catalog>
>>>>
>>>> And this is the XML-File:
>>>>
>>>> <?xml version='1.0' encoding='UTF-8'?>
>>>>
>>>> <!DOCTYPE XMLBlock SYSTEM
>>>> "/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/XMLBlock/XMLBlock.dtd"
>>>> [
>>>>
>>>> <!ENTITY csv SYSTEM
>>>> "/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_do
>>>> k
>>>> u
>>>> /example/sample_config.csv">]>
>>>>
>>>> <XMLBlock DocID="bla">
>>>>
>>>>   <Title if="(TEST)">Doc Name</Title>
>>>>
>>>>   <Description>
>>>>
>>>>     <Heading>[1.1] EDIT description</Heading>
>>>>
>>>>     <Content if="(CANCEL_BUTTON)">Er hörte leise Schritte hinter sich.
>>>> </Content>
>>>>
>>>>   </Description>
>>>>
>>>> </XMLBlock>
>>>>
>>>> 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?
>>>>
>>>> Best regards
>>>>
>>>> Markus
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Mit freundlichen Grüßen/Kind regards
>>>>
>>>> Markus Sticker
>>>> Forschung und Entwicklung ZF Konzern/Research and Development ZF
>>>> Group Infrastruktur/Infrastructure (DTEP4)
>>>>
>>>> ZF Friedrichshafen AG
>>>> 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone  +49 7541
>>>> 77-7644, Telefax/Fax  +49 7541 77-907644 [hidden email]
>>>>
>>>>
>>>> Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr.
>>>> Giorgio Behr
>>>> Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr.
>>>> Konstantin Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm, Rolf
>>>> Lutz
>>>>
>>>> Sitz/Headquarters: Friedrichshafen
>>>> Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of
>>>> the municipal court of Ulm HRB 630206
>>>>
>>>>
>>>>
>>>> --------------------------------------------------------------------
>>>> -
>>>> -
>>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>>> Server from Actuate! Instantly Supercharge Your Business Reports and
>>>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>>>> Integration & more Get technology previously reserved for
>>>> billion-dollar corporations, FREE
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>>> clktrk_______________________________________________
>>>> saxon-help mailing list archived at http://saxon.markmail.org/
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>>>
>>>>
>>>>
>>>> --------------------------------------------------------------------
>>>> -
>>>> -
>>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>>> Server from Actuate! Instantly Supercharge Your Business Reports and
>>>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>>>> Integration & more Get technology previously reserved for
>>>> billion-dollar corporations, FREE
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>>> clktrk _______________________________________________
>>>> saxon-help mailing list archived at http://saxon.markmail.org/
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>>
>>>
>>>
>>> --
>>> Dave Pawson
>>> XSLT XSL-FO FAQ.
>>> Docbook FAQ.
>>> http://www.dpawson.co.uk
>>>
>>> ---------------------------------------------------------------------
>>> -
>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>> Server from Actuate! Instantly Supercharge Your Business Reports and
>>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>>> Integration & more Get technology previously reserved for
>>> billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>> clktrk _______________________________________________
>>> saxon-help mailing list archived at http://saxon.markmail.org/
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>> ---------------------------------------------------------------------
>>> -
>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>> Server from Actuate! Instantly Supercharge Your Business Reports and
>>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>>> Integration & more Get technology previously reserved for
>>> billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>> clktrk _______________________________________________
>>> saxon-help mailing list archived at http://saxon.markmail.org/
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>
>>
>>
>> --
>> Dave Pawson
>> XSLT XSL-FO FAQ.
>> Docbook FAQ.
>> http://www.dpawson.co.uk
>>
>> ----------------------------------------------------------------------
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>> clktrk _______________________________________________
>> saxon-help mailing list archived at http://saxon.markmail.org/
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>> ----------------------------------------------------------------------
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>> clktrk _______________________________________________
>> saxon-help mailing list archived at http://saxon.markmail.org/
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>
>
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> Docbook FAQ.
> http://www.dpawson.co.uk
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/ [hidden email] https://lists.sourceforge.net/lists/listinfo/saxon-help
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help



--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Problems with XMLCatalog and rewriteSystem

markus.sticker.epos
Thank you, Dave

But I think it is something other because I tried to set this on the
document

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE XMLBlock SYSTEM "XMLTEST">
<XMLBlock> ....

And this in the catalog:
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"  >
<rewriteSystem systemIdStartString="XML"           rewritePrefix="SOMETHING"/>
</catalog>

So I expected to have a exception with: "SOMETHING... not found"
But I got:
Failure reading file:/X:/z186485_hpsys_pa_cr113019_revision_tracking/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/s
oftware_doku/example/revisons.xml: X:\z186485_hpsys_pa_cr113019_revision_tracking\zfhpsys\tool_int\software_doku\dokusystem\s
erna\plugin\software_doku\example\XMLTEST (File not found) [what is actually the source path]

So, the conclusion is that no substitution happened here.
Best regards

Markus

-----Ursprüngliche Nachricht-----
Von: Dave Pawson [mailto:[hidden email]]
Gesendet: Freitag, 5. Dezember 2014 09:23
An: Mailing list for the SAXON XSLT and XQuery processor
Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem

change directory sep from forward slash to backslash, also java, change path element from colon to semicolon.



On 5 December 2014 at 08:08,  <[hidden email]> wrote:

> What do you mean with " s;/;\;" are there paramters to set?
>
> -----Ursprüngliche Nachricht-----
> Von: Dave Pawson [mailto:[hidden email]]
> Gesendet: Freitag, 5. Dezember 2014 09:02
> An: Mailing list for the SAXON XSLT and XQuery processor
> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>
> This is on Linux, but same on windows, just s;/;\;
>
> I do wish Mike would remain consistent with his cmd line param syntax.
>
> regards
>
> On 5 December 2014 at 07:15,  <[hidden email]> wrote:
>> What kind of OS di you use?
>> Best regards
>>
>> Markus
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Dave Pawson [mailto:[hidden email]]
>> Gesendet: Donnerstag, 4. Dezember 2014 18:45
>> An: Mailing list for the SAXON XSLT and XQuery processor
>> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>>
>> And you had the jars in the path?
>> Works for me, resolver too.
>>
>> regards
>>
>> On 4 December 2014 at 16:44,  <[hidden email]> wrote:
>>> Thanks for your help but  they are already set.
>>> 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
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Dave Pawson [mailto:[hidden email]]
>>> Gesendet: Donnerstag, 4. Dezember 2014 17:40
>>> An: Mailing list for the SAXON XSLT and XQuery processor
>>> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>>>
>>> java -Xms1024m -cp
>>> /myjava/saxon9pe.jar:/myjava/xercesImpl.jar:/myjava/xml-apis.jar:/my
>>> j a va/resolver.jar:/sgml:/myjava/saxon9-sql.jar:/sgml
>>> -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xer
>>> c e s.parsers.XIncludeParserConfiguration
>>> net.sf.saxon.Transform
>>> -x:org.apache.xml.resolver.tools.ResolvingXMLReader
>>> -y:org.apache.xml.resolver.tools.ResolvingXMLReader
>>> -r:org.apache.xml.resolver.tools.CatalogResolver -s:<input>
>>> -xsl:<stylesheet> -o:<output>
>>>
>>> Calls on resolver (xerces), also same for parser
>>> r: names the resolver.
>>> HTH
>>>
>>>
>>> On 4 December 2014 at 16:23, Michael Kay <[hidden email]> wrote:
>>>> I'm afraid we're not really experts on catalogs here: Saxon is just
>>>> invoking third-party software on your behalf, and you would (I
>>>> assume) get the same problem trying to parse the file with Saxon
>>>> taken out of the loop. I can't see what's wrong without trying to reproduce it (which won't be today).
>>>> Perhaps someone else can help, or perhaps posting somewhere like
>>>> StackOverflow would reach someone who understands the area better.
>>>>
>>>> Michael Kay
>>>> Saxonica
>>>> [hidden email]
>>>> +44 (0) 118 946 5893
>>>>
>>>>
>>>>
>>>>
>>>> On 4 Dec 2014, at 14:31, [hidden email] wrote:
>>>>
>>>> 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\XML
>>>> B
>>>> l
>>>> o
>>>> ck\XMLBlock.dtd
>>>>
>>>> (File not found)
>>>>
>>>> So the substition doesn't work.
>>>>
>>>> This is my catalog.xml:
>>>>
>>>> <?xml version='1.0' encoding='UTF-8'?>
>>>>
>>>> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN"
>>>> "http://www.oasis-    open.org/committees/entity/release/1.0/catalog.dtd">
>>>>
>>>> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
>>>> prefer="system">
>>>>
>>>>  <rewriteSystem systemIdStartString="/zfhpsys"
>>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracki
>>>> n
>>>> g
>>>> /
>>>> zfhpsys"/>
>>>>
>>>> <rewriteURI    uriStartString="file:///zfhpsys"
>>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracki
>>>> n
>>>> g
>>>> /
>>>> zfhpsys"/>
>>>>
>>>>  <rewriteURI    uriStartString="/"
>>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracki
>>>> n
>>>> g
>>>> /
>>>> "/>
>>>>
>>>> </catalog>
>>>>
>>>> And this is the XML-File:
>>>>
>>>> <?xml version='1.0' encoding='UTF-8'?>
>>>>
>>>> <!DOCTYPE XMLBlock SYSTEM
>>>> "/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/XMLBlock/XMLBlock.dtd"
>>>> [
>>>>
>>>> <!ENTITY csv SYSTEM
>>>> "/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_d
>>>> o
>>>> k
>>>> u
>>>> /example/sample_config.csv">]>
>>>>
>>>> <XMLBlock DocID="bla">
>>>>
>>>>   <Title if="(TEST)">Doc Name</Title>
>>>>
>>>>   <Description>
>>>>
>>>>     <Heading>[1.1] EDIT description</Heading>
>>>>
>>>>     <Content if="(CANCEL_BUTTON)">Er hörte leise Schritte hinter sich.
>>>> </Content>
>>>>
>>>>   </Description>
>>>>
>>>> </XMLBlock>
>>>>
>>>> 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?
>>>>
>>>> Best regards
>>>>
>>>> Markus
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Mit freundlichen Grüßen/Kind regards
>>>>
>>>> Markus Sticker
>>>> Forschung und Entwicklung ZF Konzern/Research and Development ZF
>>>> Group Infrastruktur/Infrastructure (DTEP4)
>>>>
>>>> ZF Friedrichshafen AG
>>>> 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone  +49 7541
>>>> 77-7644, Telefax/Fax  +49 7541 77-907644 [hidden email]
>>>>
>>>>
>>>> Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr.
>>>> Giorgio Behr
>>>> Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr.
>>>> Konstantin Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm,
>>>> Rolf Lutz
>>>>
>>>> Sitz/Headquarters: Friedrichshafen
>>>> Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of
>>>> the municipal court of Ulm HRB 630206
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------------------
>>>> -
>>>> -
>>>> -
>>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>>> Server from Actuate! Instantly Supercharge Your Business Reports
>>>> and Dashboards with Interactivity, Sharing, Native Excel Exports,
>>>> App Integration & more Get technology previously reserved for
>>>> billion-dollar corporations, FREE
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>>> clktrk_______________________________________________
>>>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------------------
>>>> -
>>>> -
>>>> -
>>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>>> Server from Actuate! Instantly Supercharge Your Business Reports
>>>> and Dashboards with Interactivity, Sharing, Native Excel Exports,
>>>> App Integration & more Get technology previously reserved for
>>>> billion-dollar corporations, FREE
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>>> clktrk _______________________________________________
>>>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>>
>>>
>>>
>>> --
>>> Dave Pawson
>>> XSLT XSL-FO FAQ.
>>> Docbook FAQ.
>>> http://www.dpawson.co.uk
>>>
>>> --------------------------------------------------------------------
>>> -
>>> -
>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>> Server from Actuate! Instantly Supercharge Your Business Reports and
>>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>>> Integration & more Get technology previously reserved for
>>> billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>> clktrk _______________________________________________
>>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>> --------------------------------------------------------------------
>>> -
>>> -
>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>> Server from Actuate! Instantly Supercharge Your Business Reports and
>>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>>> Integration & more Get technology previously reserved for
>>> billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>> clktrk _______________________________________________
>>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>
>>
>>
>> --
>> Dave Pawson
>> XSLT XSL-FO FAQ.
>> Docbook FAQ.
>> http://www.dpawson.co.uk
>>
>> ---------------------------------------------------------------------
>> -
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>> clktrk _______________________________________________
>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>> ---------------------------------------------------------------------
>> -
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>> clktrk _______________________________________________
>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>
>
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> Docbook FAQ.
> http://www.dpawson.co.uk
>
> ----------------------------------------------------------------------
> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
> Server from Actuate! Instantly Supercharge Your Business Reports and
> Dashboards with Interactivity, Sharing, Native Excel Exports, App
> Integration & more Get technology previously reserved for
> billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
> clktrk _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/ 
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help
> ----------------------------------------------------------------------
> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
> Server from Actuate! Instantly Supercharge Your Business Reports and
> Dashboards with Interactivity, Sharing, Native Excel Exports, App
> Integration & more Get technology previously reserved for
> billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
> clktrk _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/ 
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help



--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/ [hidden email] https://lists.sourceforge.net/lists/listinfo/saxon-help 
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Problems with XMLCatalog and rewriteSystem

markus.sticker.epos
In reply to this post by Dave Pawson-2
Maybe be so kind an send me you classpath to be sure having all needed jars in the path.
Thanks

-----Ursprüngliche Nachricht-----
Von: Dave Pawson [mailto:[hidden email]]
Gesendet: Freitag, 5. Dezember 2014 09:23
An: Mailing list for the SAXON XSLT and XQuery processor
Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem

change directory sep from forward slash to backslash, also java, change path element from colon to semicolon.



On 5 December 2014 at 08:08,  <[hidden email]> wrote:

> What do you mean with " s;/;\;" are there paramters to set?
>
> -----Ursprüngliche Nachricht-----
> Von: Dave Pawson [mailto:[hidden email]]
> Gesendet: Freitag, 5. Dezember 2014 09:02
> An: Mailing list for the SAXON XSLT and XQuery processor
> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>
> This is on Linux, but same on windows, just s;/;\;
>
> I do wish Mike would remain consistent with his cmd line param syntax.
>
> regards
>
> On 5 December 2014 at 07:15,  <[hidden email]> wrote:
>> What kind of OS di you use?
>> Best regards
>>
>> Markus
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Dave Pawson [mailto:[hidden email]]
>> Gesendet: Donnerstag, 4. Dezember 2014 18:45
>> An: Mailing list for the SAXON XSLT and XQuery processor
>> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>>
>> And you had the jars in the path?
>> Works for me, resolver too.
>>
>> regards
>>
>> On 4 December 2014 at 16:44,  <[hidden email]> wrote:
>>> Thanks for your help but  they are already set.
>>> 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
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Dave Pawson [mailto:[hidden email]]
>>> Gesendet: Donnerstag, 4. Dezember 2014 17:40
>>> An: Mailing list for the SAXON XSLT and XQuery processor
>>> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>>>
>>> java -Xms1024m -cp
>>> /myjava/saxon9pe.jar:/myjava/xercesImpl.jar:/myjava/xml-apis.jar:/my
>>> j a va/resolver.jar:/sgml:/myjava/saxon9-sql.jar:/sgml
>>> -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xer
>>> c e s.parsers.XIncludeParserConfiguration
>>> net.sf.saxon.Transform
>>> -x:org.apache.xml.resolver.tools.ResolvingXMLReader
>>> -y:org.apache.xml.resolver.tools.ResolvingXMLReader
>>> -r:org.apache.xml.resolver.tools.CatalogResolver -s:<input>
>>> -xsl:<stylesheet> -o:<output>
>>>
>>> Calls on resolver (xerces), also same for parser
>>> r: names the resolver.
>>> HTH
>>>
>>>
>>> On 4 December 2014 at 16:23, Michael Kay <[hidden email]> wrote:
>>>> I'm afraid we're not really experts on catalogs here: Saxon is just
>>>> invoking third-party software on your behalf, and you would (I
>>>> assume) get the same problem trying to parse the file with Saxon
>>>> taken out of the loop. I can't see what's wrong without trying to reproduce it (which won't be today).
>>>> Perhaps someone else can help, or perhaps posting somewhere like
>>>> StackOverflow would reach someone who understands the area better.
>>>>
>>>> Michael Kay
>>>> Saxonica
>>>> [hidden email]
>>>> +44 (0) 118 946 5893
>>>>
>>>>
>>>>
>>>>
>>>> On 4 Dec 2014, at 14:31, [hidden email] wrote:
>>>>
>>>> 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\XML
>>>> B
>>>> l
>>>> o
>>>> ck\XMLBlock.dtd
>>>>
>>>> (File not found)
>>>>
>>>> So the substition doesn't work.
>>>>
>>>> This is my catalog.xml:
>>>>
>>>> <?xml version='1.0' encoding='UTF-8'?>
>>>>
>>>> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN"
>>>> "http://www.oasis-    open.org/committees/entity/release/1.0/catalog.dtd">
>>>>
>>>> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
>>>> prefer="system">
>>>>
>>>>  <rewriteSystem systemIdStartString="/zfhpsys"
>>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracki
>>>> n
>>>> g
>>>> /
>>>> zfhpsys"/>
>>>>
>>>> <rewriteURI    uriStartString="file:///zfhpsys"
>>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracki
>>>> n
>>>> g
>>>> /
>>>> zfhpsys"/>
>>>>
>>>>  <rewriteURI    uriStartString="/"
>>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracki
>>>> n
>>>> g
>>>> /
>>>> "/>
>>>>
>>>> </catalog>
>>>>
>>>> And this is the XML-File:
>>>>
>>>> <?xml version='1.0' encoding='UTF-8'?>
>>>>
>>>> <!DOCTYPE XMLBlock SYSTEM
>>>> "/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/XMLBlock/XMLBlock.dtd"
>>>> [
>>>>
>>>> <!ENTITY csv SYSTEM
>>>> "/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_d
>>>> o
>>>> k
>>>> u
>>>> /example/sample_config.csv">]>
>>>>
>>>> <XMLBlock DocID="bla">
>>>>
>>>>   <Title if="(TEST)">Doc Name</Title>
>>>>
>>>>   <Description>
>>>>
>>>>     <Heading>[1.1] EDIT description</Heading>
>>>>
>>>>     <Content if="(CANCEL_BUTTON)">Er hörte leise Schritte hinter sich.
>>>> </Content>
>>>>
>>>>   </Description>
>>>>
>>>> </XMLBlock>
>>>>
>>>> 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?
>>>>
>>>> Best regards
>>>>
>>>> Markus
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Mit freundlichen Grüßen/Kind regards
>>>>
>>>> Markus Sticker
>>>> Forschung und Entwicklung ZF Konzern/Research and Development ZF
>>>> Group Infrastruktur/Infrastructure (DTEP4)
>>>>
>>>> ZF Friedrichshafen AG
>>>> 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone  +49 7541
>>>> 77-7644, Telefax/Fax  +49 7541 77-907644 [hidden email]
>>>>
>>>>
>>>> Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr.
>>>> Giorgio Behr
>>>> Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr.
>>>> Konstantin Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm,
>>>> Rolf Lutz
>>>>
>>>> Sitz/Headquarters: Friedrichshafen
>>>> Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of
>>>> the municipal court of Ulm HRB 630206
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------------------
>>>> -
>>>> -
>>>> -
>>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>>> Server from Actuate! Instantly Supercharge Your Business Reports
>>>> and Dashboards with Interactivity, Sharing, Native Excel Exports,
>>>> App Integration & more Get technology previously reserved for
>>>> billion-dollar corporations, FREE
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>>> clktrk_______________________________________________
>>>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------------------
>>>> -
>>>> -
>>>> -
>>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>>> Server from Actuate! Instantly Supercharge Your Business Reports
>>>> and Dashboards with Interactivity, Sharing, Native Excel Exports,
>>>> App Integration & more Get technology previously reserved for
>>>> billion-dollar corporations, FREE
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>>> clktrk _______________________________________________
>>>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>>
>>>
>>>
>>> --
>>> Dave Pawson
>>> XSLT XSL-FO FAQ.
>>> Docbook FAQ.
>>> http://www.dpawson.co.uk
>>>
>>> --------------------------------------------------------------------
>>> -
>>> -
>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>> Server from Actuate! Instantly Supercharge Your Business Reports and
>>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>>> Integration & more Get technology previously reserved for
>>> billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>> clktrk _______________________________________________
>>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>> --------------------------------------------------------------------
>>> -
>>> -
>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>> Server from Actuate! Instantly Supercharge Your Business Reports and
>>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>>> Integration & more Get technology previously reserved for
>>> billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>> clktrk _______________________________________________
>>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>
>>
>>
>> --
>> Dave Pawson
>> XSLT XSL-FO FAQ.
>> Docbook FAQ.
>> http://www.dpawson.co.uk
>>
>> ---------------------------------------------------------------------
>> -
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>> clktrk _______________________________________________
>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>> ---------------------------------------------------------------------
>> -
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>> clktrk _______________________________________________
>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>
>
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> Docbook FAQ.
> http://www.dpawson.co.uk
>
> ----------------------------------------------------------------------
> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
> Server from Actuate! Instantly Supercharge Your Business Reports and
> Dashboards with Interactivity, Sharing, Native Excel Exports, App
> Integration & more Get technology previously reserved for
> billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
> clktrk _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/ 
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help
> ----------------------------------------------------------------------
> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
> Server from Actuate! Instantly Supercharge Your Business Reports and
> Dashboards with Interactivity, Sharing, Native Excel Exports, App
> Integration & more Get technology previously reserved for
> billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
> clktrk _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/ 
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help



--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/ [hidden email] https://lists.sourceforge.net/lists/listinfo/saxon-help 
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Problems with XMLCatalog and rewriteSystem

Dave Pawson-2
In reply to this post by markus.sticker.epos
Try
http://www.sagehill.net/docbookxsl/WriteCatalog.html

to check you have the catalog (and version) right.
  Not really on topic for Mikes list?
regards

On 5 December 2014 at 08:53,  <[hidden email]> wrote:

> Thank you, Dave
>
> But I think it is something other because I tried to set this on the
> document
>
> <?xml version='1.0' encoding='UTF-8'?>
> <!DOCTYPE XMLBlock SYSTEM "XMLTEST">
> <XMLBlock> ....
>
> And this in the catalog:
> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"  >
> <rewriteSystem systemIdStartString="XML"           rewritePrefix="SOMETHING"/>
> </catalog>
>
> So I expected to have a exception with: "SOMETHING... not found"
> But I got:
> Failure reading file:/X:/z186485_hpsys_pa_cr113019_revision_tracking/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/s
> oftware_doku/example/revisons.xml: X:\z186485_hpsys_pa_cr113019_revision_tracking\zfhpsys\tool_int\software_doku\dokusystem\s
> erna\plugin\software_doku\example\XMLTEST (File not found) [what is actually the source path]
>
> So, the conclusion is that no substitution happened here.
> Best regards
>
> Markus
>
> -----Ursprüngliche Nachricht-----
> Von: Dave Pawson [mailto:[hidden email]]
> Gesendet: Freitag, 5. Dezember 2014 09:23
> An: Mailing list for the SAXON XSLT and XQuery processor
> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>
> change directory sep from forward slash to backslash, also java, change path element from colon to semicolon.
>
>
>
> On 5 December 2014 at 08:08,  <[hidden email]> wrote:
>> What do you mean with " s;/;\;" are there paramters to set?
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Dave Pawson [mailto:[hidden email]]
>> Gesendet: Freitag, 5. Dezember 2014 09:02
>> An: Mailing list for the SAXON XSLT and XQuery processor
>> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>>
>> This is on Linux, but same on windows, just s;/;\;
>>
>> I do wish Mike would remain consistent with his cmd line param syntax.
>>
>> regards
>>
>> On 5 December 2014 at 07:15,  <[hidden email]> wrote:
>>> What kind of OS di you use?
>>> Best regards
>>>
>>> Markus
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Dave Pawson [mailto:[hidden email]]
>>> Gesendet: Donnerstag, 4. Dezember 2014 18:45
>>> An: Mailing list for the SAXON XSLT and XQuery processor
>>> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>>>
>>> And you had the jars in the path?
>>> Works for me, resolver too.
>>>
>>> regards
>>>
>>> On 4 December 2014 at 16:44,  <[hidden email]> wrote:
>>>> Thanks for your help but  they are already set.
>>>> 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
>>>>
>>>> -----Ursprüngliche Nachricht-----
>>>> Von: Dave Pawson [mailto:[hidden email]]
>>>> Gesendet: Donnerstag, 4. Dezember 2014 17:40
>>>> An: Mailing list for the SAXON XSLT and XQuery processor
>>>> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>>>>
>>>> java -Xms1024m -cp
>>>> /myjava/saxon9pe.jar:/myjava/xercesImpl.jar:/myjava/xml-apis.jar:/my
>>>> j a va/resolver.jar:/sgml:/myjava/saxon9-sql.jar:/sgml
>>>> -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xer
>>>> c e s.parsers.XIncludeParserConfiguration
>>>> net.sf.saxon.Transform
>>>> -x:org.apache.xml.resolver.tools.ResolvingXMLReader
>>>> -y:org.apache.xml.resolver.tools.ResolvingXMLReader
>>>> -r:org.apache.xml.resolver.tools.CatalogResolver -s:<input>
>>>> -xsl:<stylesheet> -o:<output>
>>>>
>>>> Calls on resolver (xerces), also same for parser
>>>> r: names the resolver.
>>>> HTH
>>>>
>>>>
>>>> On 4 December 2014 at 16:23, Michael Kay <[hidden email]> wrote:
>>>>> I'm afraid we're not really experts on catalogs here: Saxon is just
>>>>> invoking third-party software on your behalf, and you would (I
>>>>> assume) get the same problem trying to parse the file with Saxon
>>>>> taken out of the loop. I can't see what's wrong without trying to reproduce it (which won't be today).
>>>>> Perhaps someone else can help, or perhaps posting somewhere like
>>>>> StackOverflow would reach someone who understands the area better.
>>>>>
>>>>> Michael Kay
>>>>> Saxonica
>>>>> [hidden email]
>>>>> +44 (0) 118 946 5893
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 4 Dec 2014, at 14:31, [hidden email] wrote:
>>>>>
>>>>> 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\XML
>>>>> B
>>>>> l
>>>>> o
>>>>> ck\XMLBlock.dtd
>>>>>
>>>>> (File not found)
>>>>>
>>>>> So the substition doesn't work.
>>>>>
>>>>> This is my catalog.xml:
>>>>>
>>>>> <?xml version='1.0' encoding='UTF-8'?>
>>>>>
>>>>> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN"
>>>>> "http://www.oasis-    open.org/committees/entity/release/1.0/catalog.dtd">
>>>>>
>>>>> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
>>>>> prefer="system">
>>>>>
>>>>>  <rewriteSystem systemIdStartString="/zfhpsys"
>>>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracki
>>>>> n
>>>>> g
>>>>> /
>>>>> zfhpsys"/>
>>>>>
>>>>> <rewriteURI    uriStartString="file:///zfhpsys"
>>>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracki
>>>>> n
>>>>> g
>>>>> /
>>>>> zfhpsys"/>
>>>>>
>>>>>  <rewriteURI    uriStartString="/"
>>>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracki
>>>>> n
>>>>> g
>>>>> /
>>>>> "/>
>>>>>
>>>>> </catalog>
>>>>>
>>>>> And this is the XML-File:
>>>>>
>>>>> <?xml version='1.0' encoding='UTF-8'?>
>>>>>
>>>>> <!DOCTYPE XMLBlock SYSTEM
>>>>> "/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/XMLBlock/XMLBlock.dtd"
>>>>> [
>>>>>
>>>>> <!ENTITY csv SYSTEM
>>>>> "/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_d
>>>>> o
>>>>> k
>>>>> u
>>>>> /example/sample_config.csv">]>
>>>>>
>>>>> <XMLBlock DocID="bla">
>>>>>
>>>>>   <Title if="(TEST)">Doc Name</Title>
>>>>>
>>>>>   <Description>
>>>>>
>>>>>     <Heading>[1.1] EDIT description</Heading>
>>>>>
>>>>>     <Content if="(CANCEL_BUTTON)">Er hörte leise Schritte hinter sich.
>>>>> </Content>
>>>>>
>>>>>   </Description>
>>>>>
>>>>> </XMLBlock>
>>>>>
>>>>> 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?
>>>>>
>>>>> Best regards
>>>>>
>>>>> Markus
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Mit freundlichen Grüßen/Kind regards
>>>>>
>>>>> Markus Sticker
>>>>> Forschung und Entwicklung ZF Konzern/Research and Development ZF
>>>>> Group Infrastruktur/Infrastructure (DTEP4)
>>>>>
>>>>> ZF Friedrichshafen AG
>>>>> 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone  +49 7541
>>>>> 77-7644, Telefax/Fax  +49 7541 77-907644 [hidden email]
>>>>>
>>>>>
>>>>> Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr.
>>>>> Giorgio Behr
>>>>> Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr.
>>>>> Konstantin Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm,
>>>>> Rolf Lutz
>>>>>
>>>>> Sitz/Headquarters: Friedrichshafen
>>>>> Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of
>>>>> the municipal court of Ulm HRB 630206
>>>>>
>>>>>
>>>>>
>>>>> -------------------------------------------------------------------
>>>>> -
>>>>> -
>>>>> -
>>>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>>>> Server from Actuate! Instantly Supercharge Your Business Reports
>>>>> and Dashboards with Interactivity, Sharing, Native Excel Exports,
>>>>> App Integration & more Get technology previously reserved for
>>>>> billion-dollar corporations, FREE
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>>>> clktrk_______________________________________________
>>>>> saxon-help mailing list archived at http://saxon.markmail.org/
>>>>> [hidden email]
>>>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>>>>
>>>>>
>>>>>
>>>>> -------------------------------------------------------------------
>>>>> -
>>>>> -
>>>>> -
>>>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>>>> Server from Actuate! Instantly Supercharge Your Business Reports
>>>>> and Dashboards with Interactivity, Sharing, Native Excel Exports,
>>>>> App Integration & more Get technology previously reserved for
>>>>> billion-dollar corporations, FREE
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>>>> clktrk _______________________________________________
>>>>> saxon-help mailing list archived at http://saxon.markmail.org/
>>>>> [hidden email]
>>>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>>>
>>>>
>>>>
>>>> --
>>>> Dave Pawson
>>>> XSLT XSL-FO FAQ.
>>>> Docbook FAQ.
>>>> http://www.dpawson.co.uk
>>>>
>>>> --------------------------------------------------------------------
>>>> -
>>>> -
>>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>>> Server from Actuate! Instantly Supercharge Your Business Reports and
>>>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>>>> Integration & more Get technology previously reserved for
>>>> billion-dollar corporations, FREE
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>>> clktrk _______________________________________________
>>>> saxon-help mailing list archived at http://saxon.markmail.org/
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>>> --------------------------------------------------------------------
>>>> -
>>>> -
>>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>>> Server from Actuate! Instantly Supercharge Your Business Reports and
>>>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>>>> Integration & more Get technology previously reserved for
>>>> billion-dollar corporations, FREE
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>>> clktrk _______________________________________________
>>>> saxon-help mailing list archived at http://saxon.markmail.org/
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>>
>>>
>>>
>>> --
>>> Dave Pawson
>>> XSLT XSL-FO FAQ.
>>> Docbook FAQ.
>>> http://www.dpawson.co.uk
>>>
>>> ---------------------------------------------------------------------
>>> -
>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>> Server from Actuate! Instantly Supercharge Your Business Reports and
>>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>>> Integration & more Get technology previously reserved for
>>> billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>> clktrk _______________________________________________
>>> saxon-help mailing list archived at http://saxon.markmail.org/
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>> ---------------------------------------------------------------------
>>> -
>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>> Server from Actuate! Instantly Supercharge Your Business Reports and
>>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>>> Integration & more Get technology previously reserved for
>>> billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>> clktrk _______________________________________________
>>> saxon-help mailing list archived at http://saxon.markmail.org/
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>
>>
>>
>> --
>> Dave Pawson
>> XSLT XSL-FO FAQ.
>> Docbook FAQ.
>> http://www.dpawson.co.uk
>>
>> ----------------------------------------------------------------------
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>> clktrk _______________________________________________
>> saxon-help mailing list archived at http://saxon.markmail.org/
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>> ----------------------------------------------------------------------
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>> clktrk _______________________________________________
>> saxon-help mailing list archived at http://saxon.markmail.org/
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>
>
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> Docbook FAQ.
> http://www.dpawson.co.uk
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/ [hidden email] https://lists.sourceforge.net/lists/listinfo/saxon-help
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help



--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Problems with XMLCatalog and rewriteSystem

George Cristian Bina-2
In reply to this post by markus.sticker.epos
Have you seen Jirka's reply?
Xerces will make the references absolute before calling the catalog
file, so when you have something like this

<!DOCTYPE XMLBlock SYSTEM "XMLTEST">

in a file located for example to file:/Documents/test.xml then what gets
to the resolver is:

file:/Documents/XMLTEST

and this surely does not start with XML, so no rewrite happens.

One option will be to use an absolute location for your DTDs, like

http://www.example.com/XMLTEST/d1.drd

and then you can rewrite the http://www.example.com/XMLTEST to a local
folder where you actually have the DTD files.

Best Regards,
George
--
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 05/12/14 10:53, [hidden email] wrote:

> Thank you, Dave
>
> But I think it is something other because I tried to set this on the
> document
>
> <?xml version='1.0' encoding='UTF-8'?>
> <!DOCTYPE XMLBlock SYSTEM "XMLTEST">
> <XMLBlock> ....
>
> And this in the catalog:
> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"  >
> <rewriteSystem systemIdStartString="XML"           rewritePrefix="SOMETHING"/>
> </catalog>
>
> So I expected to have a exception with: "SOMETHING... not found"
> But I got:
> Failure reading file:/X:/z186485_hpsys_pa_cr113019_revision_tracking/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/s
> oftware_doku/example/revisons.xml: X:\z186485_hpsys_pa_cr113019_revision_tracking\zfhpsys\tool_int\software_doku\dokusystem\s
> erna\plugin\software_doku\example\XMLTEST (File not found) [what is actually the source path]
>
> So, the conclusion is that no substitution happened here.
> Best regards
>
> Markus
>
> -----Ursprüngliche Nachricht-----
> Von: Dave Pawson [mailto:[hidden email]]
> Gesendet: Freitag, 5. Dezember 2014 09:23
> An: Mailing list for the SAXON XSLT and XQuery processor
> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>
> change directory sep from forward slash to backslash, also java, change path element from colon to semicolon.
>
>
>
> On 5 December 2014 at 08:08,  <[hidden email]> wrote:
>> What do you mean with " s;/;\;" are there paramters to set?
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Dave Pawson [mailto:[hidden email]]
>> Gesendet: Freitag, 5. Dezember 2014 09:02
>> An: Mailing list for the SAXON XSLT and XQuery processor
>> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>>
>> This is on Linux, but same on windows, just s;/;\;
>>
>> I do wish Mike would remain consistent with his cmd line param syntax.
>>
>> regards
>>
>> On 5 December 2014 at 07:15,  <[hidden email]> wrote:
>>> What kind of OS di you use?
>>> Best regards
>>>
>>> Markus
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Dave Pawson [mailto:[hidden email]]
>>> Gesendet: Donnerstag, 4. Dezember 2014 18:45
>>> An: Mailing list for the SAXON XSLT and XQuery processor
>>> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>>>
>>> And you had the jars in the path?
>>> Works for me, resolver too.
>>>
>>> regards
>>>
>>> On 4 December 2014 at 16:44,  <[hidden email]> wrote:
>>>> Thanks for your help but  they are already set.
>>>> 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
>>>>
>>>> -----Ursprüngliche Nachricht-----
>>>> Von: Dave Pawson [mailto:[hidden email]]
>>>> Gesendet: Donnerstag, 4. Dezember 2014 17:40
>>>> An: Mailing list for the SAXON XSLT and XQuery processor
>>>> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>>>>
>>>> java -Xms1024m -cp
>>>> /myjava/saxon9pe.jar:/myjava/xercesImpl.jar:/myjava/xml-apis.jar:/my
>>>> j a va/resolver.jar:/sgml:/myjava/saxon9-sql.jar:/sgml
>>>> -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xer
>>>> c e s.parsers.XIncludeParserConfiguration
>>>> net.sf.saxon.Transform
>>>> -x:org.apache.xml.resolver.tools.ResolvingXMLReader
>>>> -y:org.apache.xml.resolver.tools.ResolvingXMLReader
>>>> -r:org.apache.xml.resolver.tools.CatalogResolver -s:<input>
>>>> -xsl:<stylesheet> -o:<output>
>>>>
>>>> Calls on resolver (xerces), also same for parser
>>>> r: names the resolver.
>>>> HTH
>>>>
>>>>
>>>> On 4 December 2014 at 16:23, Michael Kay <[hidden email]> wrote:
>>>>> I'm afraid we're not really experts on catalogs here: Saxon is just
>>>>> invoking third-party software on your behalf, and you would (I
>>>>> assume) get the same problem trying to parse the file with Saxon
>>>>> taken out of the loop. I can't see what's wrong without trying to reproduce it (which won't be today).
>>>>> Perhaps someone else can help, or perhaps posting somewhere like
>>>>> StackOverflow would reach someone who understands the area better.
>>>>>
>>>>> Michael Kay
>>>>> Saxonica
>>>>> [hidden email]
>>>>> +44 (0) 118 946 5893
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 4 Dec 2014, at 14:31, [hidden email] wrote:
>>>>>
>>>>> 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\XML
>>>>> B
>>>>> l
>>>>> o
>>>>> ck\XMLBlock.dtd
>>>>>
>>>>> (File not found)
>>>>>
>>>>> So the substition doesn't work.
>>>>>
>>>>> This is my catalog.xml:
>>>>>
>>>>> <?xml version='1.0' encoding='UTF-8'?>
>>>>>
>>>>> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN"
>>>>> "http://www.oasis-    open.org/committees/entity/release/1.0/catalog.dtd">
>>>>>
>>>>> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
>>>>> prefer="system">
>>>>>
>>>>>   <rewriteSystem systemIdStartString="/zfhpsys"
>>>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracki
>>>>> n
>>>>> g
>>>>> /
>>>>> zfhpsys"/>
>>>>>
>>>>> <rewriteURI    uriStartString="file:///zfhpsys"
>>>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracki
>>>>> n
>>>>> g
>>>>> /
>>>>> zfhpsys"/>
>>>>>
>>>>>   <rewriteURI    uriStartString="/"
>>>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_tracki
>>>>> n
>>>>> g
>>>>> /
>>>>> "/>
>>>>>
>>>>> </catalog>
>>>>>
>>>>> And this is the XML-File:
>>>>>
>>>>> <?xml version='1.0' encoding='UTF-8'?>
>>>>>
>>>>> <!DOCTYPE XMLBlock SYSTEM
>>>>> "/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/XMLBlock/XMLBlock.dtd"
>>>>> [
>>>>>
>>>>> <!ENTITY csv SYSTEM
>>>>> "/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_d
>>>>> o
>>>>> k
>>>>> u
>>>>> /example/sample_config.csv">]>
>>>>>
>>>>> <XMLBlock DocID="bla">
>>>>>
>>>>>    <Title if="(TEST)">Doc Name</Title>
>>>>>
>>>>>    <Description>
>>>>>
>>>>>      <Heading>[1.1] EDIT description</Heading>
>>>>>
>>>>>      <Content if="(CANCEL_BUTTON)">Er hörte leise Schritte hinter sich.
>>>>> </Content>
>>>>>
>>>>>    </Description>
>>>>>
>>>>> </XMLBlock>
>>>>>
>>>>> 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?
>>>>>
>>>>> Best regards
>>>>>
>>>>> Markus
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Mit freundlichen Grüßen/Kind regards
>>>>>
>>>>> Markus Sticker
>>>>> Forschung und Entwicklung ZF Konzern/Research and Development ZF
>>>>> Group Infrastruktur/Infrastructure (DTEP4)
>>>>>
>>>>> ZF Friedrichshafen AG
>>>>> 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone  +49 7541
>>>>> 77-7644, Telefax/Fax  +49 7541 77-907644 [hidden email]
>>>>>
>>>>>
>>>>> Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr.
>>>>> Giorgio Behr
>>>>> Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr.
>>>>> Konstantin Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm,
>>>>> Rolf Lutz
>>>>>
>>>>> Sitz/Headquarters: Friedrichshafen
>>>>> Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of
>>>>> the municipal court of Ulm HRB 630206
>>>>>
>>>>>
>>>>>
>>>>> -------------------------------------------------------------------
>>>>> -
>>>>> -
>>>>> -
>>>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>>>> Server from Actuate! Instantly Supercharge Your Business Reports
>>>>> and Dashboards with Interactivity, Sharing, Native Excel Exports,
>>>>> App Integration & more Get technology previously reserved for
>>>>> billion-dollar corporations, FREE
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>>>> clktrk_______________________________________________
>>>>> saxon-help mailing list archived at http://saxon.markmail.org/
>>>>> [hidden email]
>>>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>>>>
>>>>>
>>>>>
>>>>> -------------------------------------------------------------------
>>>>> -
>>>>> -
>>>>> -
>>>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>>>> Server from Actuate! Instantly Supercharge Your Business Reports
>>>>> and Dashboards with Interactivity, Sharing, Native Excel Exports,
>>>>> App Integration & more Get technology previously reserved for
>>>>> billion-dollar corporations, FREE
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>>>> clktrk _______________________________________________
>>>>> saxon-help mailing list archived at http://saxon.markmail.org/
>>>>> [hidden email]
>>>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>>>
>>>>
>>>>
>>>> --
>>>> Dave Pawson
>>>> XSLT XSL-FO FAQ.
>>>> Docbook FAQ.
>>>> http://www.dpawson.co.uk
>>>>
>>>> --------------------------------------------------------------------
>>>> -
>>>> -
>>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>>> Server from Actuate! Instantly Supercharge Your Business Reports and
>>>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>>>> Integration & more Get technology previously reserved for
>>>> billion-dollar corporations, FREE
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>>> clktrk _______________________________________________
>>>> saxon-help mailing list archived at http://saxon.markmail.org/
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>>> --------------------------------------------------------------------
>>>> -
>>>> -
>>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>>> Server from Actuate! Instantly Supercharge Your Business Reports and
>>>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>>>> Integration & more Get technology previously reserved for
>>>> billion-dollar corporations, FREE
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>>> clktrk _______________________________________________
>>>> saxon-help mailing list archived at http://saxon.markmail.org/
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>>
>>>
>>>
>>> --
>>> Dave Pawson
>>> XSLT XSL-FO FAQ.
>>> Docbook FAQ.
>>> http://www.dpawson.co.uk
>>>
>>> ---------------------------------------------------------------------
>>> -
>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>> Server from Actuate! Instantly Supercharge Your Business Reports and
>>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>>> Integration & more Get technology previously reserved for
>>> billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>> clktrk _______________________________________________
>>> saxon-help mailing list archived at http://saxon.markmail.org/
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>> ---------------------------------------------------------------------
>>> -
>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>> Server from Actuate! Instantly Supercharge Your Business Reports and
>>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>>> Integration & more Get technology previously reserved for
>>> billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>> clktrk _______________________________________________
>>> saxon-help mailing list archived at http://saxon.markmail.org/
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>
>>
>>
>> --
>> Dave Pawson
>> XSLT XSL-FO FAQ.
>> Docbook FAQ.
>> http://www.dpawson.co.uk
>>
>> ----------------------------------------------------------------------
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>> clktrk _______________________________________________
>> saxon-help mailing list archived at http://saxon.markmail.org/
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>> ----------------------------------------------------------------------
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>> clktrk _______________________________________________
>> saxon-help mailing list archived at http://saxon.markmail.org/
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>
>
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> Docbook FAQ.
> http://www.dpawson.co.uk
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/ [hidden email] https://lists.sourceforge.net/lists/listinfo/saxon-help
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help
>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Problems with XMLCatalog and rewriteSystem

markus.sticker.epos
Thanks, that's it.
I just added
<rewriteURI    uriStartString="file:/zfhpsys" rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_track/zfhpsys" />

-----Ursprüngliche Nachricht-----
Von: George Bina [mailto:[hidden email]]
Gesendet: Samstag, 6. Dezember 2014 05:49
An: [hidden email]
Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem

Have you seen Jirka's reply?
Xerces will make the references absolute before calling the catalog file, so when you have something like this

<!DOCTYPE XMLBlock SYSTEM "XMLTEST">

in a file located for example to file:/Documents/test.xml then what gets to the resolver is:

file:/Documents/XMLTEST

and this surely does not start with XML, so no rewrite happens.

One option will be to use an absolute location for your DTDs, like

http://www.example.com/XMLTEST/d1.drd

and then you can rewrite the http://www.example.com/XMLTEST to a local folder where you actually have the DTD files.

Best Regards,
George
--
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com

On 05/12/14 10:53, [hidden email] wrote:

> Thank you, Dave
>
> But I think it is something other because I tried to set this on the
> document
>
> <?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE XMLBlock SYSTEM
> "XMLTEST"> <XMLBlock> ....
>
> And this in the catalog:
> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"  >
> <rewriteSystem systemIdStartString="XML"           rewritePrefix="SOMETHING"/>
> </catalog>
>
> So I expected to have a exception with: "SOMETHING... not found"
> But I got:
> Failure reading
> file:/X:/z186485_hpsys_pa_cr113019_revision_tracking/zfhpsys/tool_int/
> software_doku/dokusystem/serna/plugin/s
> oftware_doku/example/revisons.xml:
> X:\z186485_hpsys_pa_cr113019_revision_tracking\zfhpsys\tool_int\softwa
> re_doku\dokusystem\s erna\plugin\software_doku\example\XMLTEST (File
> not found) [what is actually the source path]
>
> So, the conclusion is that no substitution happened here.
> Best regards
>
> Markus
>
> -----Ursprüngliche Nachricht-----
> Von: Dave Pawson [mailto:[hidden email]]
> Gesendet: Freitag, 5. Dezember 2014 09:23
> An: Mailing list for the SAXON XSLT and XQuery processor
> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>
> change directory sep from forward slash to backslash, also java, change path element from colon to semicolon.
>
>
>
> On 5 December 2014 at 08:08,  <[hidden email]> wrote:
>> What do you mean with " s;/;\;" are there paramters to set?
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Dave Pawson [mailto:[hidden email]]
>> Gesendet: Freitag, 5. Dezember 2014 09:02
>> An: Mailing list for the SAXON XSLT and XQuery processor
>> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>>
>> This is on Linux, but same on windows, just s;/;\;
>>
>> I do wish Mike would remain consistent with his cmd line param syntax.
>>
>> regards
>>
>> On 5 December 2014 at 07:15,  <[hidden email]> wrote:
>>> What kind of OS di you use?
>>> Best regards
>>>
>>> Markus
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Dave Pawson [mailto:[hidden email]]
>>> Gesendet: Donnerstag, 4. Dezember 2014 18:45
>>> An: Mailing list for the SAXON XSLT and XQuery processor
>>> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>>>
>>> And you had the jars in the path?
>>> Works for me, resolver too.
>>>
>>> regards
>>>
>>> On 4 December 2014 at 16:44,  <[hidden email]> wrote:
>>>> Thanks for your help but  they are already set.
>>>> 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
>>>>
>>>> -----Ursprüngliche Nachricht-----
>>>> Von: Dave Pawson [mailto:[hidden email]]
>>>> Gesendet: Donnerstag, 4. Dezember 2014 17:40
>>>> An: Mailing list for the SAXON XSLT and XQuery processor
>>>> Betreff: Re: [saxon] Problems with XMLCatalog and rewriteSystem
>>>>
>>>> java -Xms1024m -cp
>>>> /myjava/saxon9pe.jar:/myjava/xercesImpl.jar:/myjava/xml-apis.jar:/m
>>>> y j a va/resolver.jar:/sgml:/myjava/saxon9-sql.jar:/sgml
>>>> -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xe
>>>> r c e s.parsers.XIncludeParserConfiguration
>>>> net.sf.saxon.Transform
>>>> -x:org.apache.xml.resolver.tools.ResolvingXMLReader
>>>> -y:org.apache.xml.resolver.tools.ResolvingXMLReader
>>>> -r:org.apache.xml.resolver.tools.CatalogResolver -s:<input>
>>>> -xsl:<stylesheet> -o:<output>
>>>>
>>>> Calls on resolver (xerces), also same for parser
>>>> r: names the resolver.
>>>> HTH
>>>>
>>>>
>>>> On 4 December 2014 at 16:23, Michael Kay <[hidden email]> wrote:
>>>>> I'm afraid we're not really experts on catalogs here: Saxon is
>>>>> just invoking third-party software on your behalf, and you would
>>>>> (I
>>>>> assume) get the same problem trying to parse the file with Saxon
>>>>> taken out of the loop. I can't see what's wrong without trying to reproduce it (which won't be today).
>>>>> Perhaps someone else can help, or perhaps posting somewhere like
>>>>> StackOverflow would reach someone who understands the area better.
>>>>>
>>>>> Michael Kay
>>>>> Saxonica
>>>>> [hidden email]
>>>>> +44 (0) 118 946 5893
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 4 Dec 2014, at 14:31, [hidden email] wrote:
>>>>>
>>>>> 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\XM
>>>>> L
>>>>> B
>>>>> l
>>>>> o
>>>>> ck\XMLBlock.dtd
>>>>>
>>>>> (File not found)
>>>>>
>>>>> So the substition doesn't work.
>>>>>
>>>>> This is my catalog.xml:
>>>>>
>>>>> <?xml version='1.0' encoding='UTF-8'?>
>>>>>
>>>>> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN"
>>>>> "http://www.oasis-    open.org/committees/entity/release/1.0/catalog.dtd">
>>>>>
>>>>> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
>>>>> prefer="system">
>>>>>
>>>>>   <rewriteSystem systemIdStartString="/zfhpsys"
>>>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_track
>>>>> i
>>>>> n
>>>>> g
>>>>> /
>>>>> zfhpsys"/>
>>>>>
>>>>> <rewriteURI    uriStartString="file:///zfhpsys"
>>>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_track
>>>>> i
>>>>> n
>>>>> g
>>>>> /
>>>>> zfhpsys"/>
>>>>>
>>>>>   <rewriteURI    uriStartString="/"
>>>>> rewritePrefix="file:///X:/z186485_hpsys_pa_cr113019_revision_track
>>>>> i
>>>>> n
>>>>> g
>>>>> /
>>>>> "/>
>>>>>
>>>>> </catalog>
>>>>>
>>>>> And this is the XML-File:
>>>>>
>>>>> <?xml version='1.0' encoding='UTF-8'?>
>>>>>
>>>>> <!DOCTYPE XMLBlock SYSTEM
>>>>> "/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/XMLBlock/XMLBlock.dtd"
>>>>> [
>>>>>
>>>>> <!ENTITY csv SYSTEM
>>>>> "/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_
>>>>> d
>>>>> o
>>>>> k
>>>>> u
>>>>> /example/sample_config.csv">]>
>>>>>
>>>>> <XMLBlock DocID="bla">
>>>>>
>>>>>    <Title if="(TEST)">Doc Name</Title>
>>>>>
>>>>>    <Description>
>>>>>
>>>>>      <Heading>[1.1] EDIT description</Heading>
>>>>>
>>>>>      <Content if="(CANCEL_BUTTON)">Er hörte leise Schritte hinter sich.
>>>>> </Content>
>>>>>
>>>>>    </Description>
>>>>>
>>>>> </XMLBlock>
>>>>>
>>>>> 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?
>>>>>
>>>>> Best regards
>>>>>
>>>>> Markus
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Mit freundlichen Grüßen/Kind regards
>>>>>
>>>>> Markus Sticker
>>>>> Forschung und Entwicklung ZF Konzern/Research and Development ZF
>>>>> Group Infrastruktur/Infrastructure (DTEP4)
>>>>>
>>>>> ZF Friedrichshafen AG
>>>>> 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone  +49 7541
>>>>> 77-7644, Telefax/Fax  +49 7541 77-907644
>>>>> [hidden email]
>>>>>
>>>>>
>>>>> Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr.
>>>>> Giorgio Behr
>>>>> Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr.
>>>>> Konstantin Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm,
>>>>> Rolf Lutz
>>>>>
>>>>> Sitz/Headquarters: Friedrichshafen Handelsregistereintrag
>>>>> Amtsgericht Ulm HRB 630206/Trade register of the municipal court
>>>>> of Ulm HRB 630206
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------
>>>>> -
>>>>> -
>>>>> -
>>>>> -
>>>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade
>>>>> BIRT Server from Actuate! Instantly Supercharge Your Business
>>>>> Reports and Dashboards with Interactivity, Sharing, Native Excel
>>>>> Exports, App Integration & more Get technology previously reserved
>>>>> for billion-dollar corporations, FREE
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>>>> clktrk_______________________________________________
>>>>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>>>>> [hidden email]
>>>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------
>>>>> -
>>>>> -
>>>>> -
>>>>> -
>>>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade
>>>>> BIRT Server from Actuate! Instantly Supercharge Your Business
>>>>> Reports and Dashboards with Interactivity, Sharing, Native Excel
>>>>> Exports, App Integration & more Get technology previously reserved
>>>>> for billion-dollar corporations, FREE
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>>>> clktrk _______________________________________________
>>>>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>>>>> [hidden email]
>>>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>>>
>>>>
>>>>
>>>> --
>>>> Dave Pawson
>>>> XSLT XSL-FO FAQ.
>>>> Docbook FAQ.
>>>> http://www.dpawson.co.uk
>>>>
>>>> -------------------------------------------------------------------
>>>> -
>>>> -
>>>> -
>>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>>> Server from Actuate! Instantly Supercharge Your Business Reports
>>>> and Dashboards with Interactivity, Sharing, Native Excel Exports,
>>>> App Integration & more Get technology previously reserved for
>>>> billion-dollar corporations, FREE
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>>> clktrk _______________________________________________
>>>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>>> -------------------------------------------------------------------
>>>> -
>>>> -
>>>> -
>>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>>> Server from Actuate! Instantly Supercharge Your Business Reports
>>>> and Dashboards with Interactivity, Sharing, Native Excel Exports,
>>>> App Integration & more Get technology previously reserved for
>>>> billion-dollar corporations, FREE
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>>> clktrk _______________________________________________
>>>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>>
>>>
>>>
>>> --
>>> Dave Pawson
>>> XSLT XSL-FO FAQ.
>>> Docbook FAQ.
>>> http://www.dpawson.co.uk
>>>
>>> --------------------------------------------------------------------
>>> -
>>> -
>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>> Server from Actuate! Instantly Supercharge Your Business Reports and
>>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>>> Integration & more Get technology previously reserved for
>>> billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>> clktrk _______________________________________________
>>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>> --------------------------------------------------------------------
>>> -
>>> -
>>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>> Server from Actuate! Instantly Supercharge Your Business Reports and
>>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>>> Integration & more Get technology previously reserved for
>>> billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>>> clktrk _______________________________________________
>>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>>
>>
>>
>> --
>> Dave Pawson
>> XSLT XSL-FO FAQ.
>> Docbook FAQ.
>> http://www.dpawson.co.uk
>>
>> ---------------------------------------------------------------------
>> -
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>> clktrk _______________________________________________
>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>> ---------------------------------------------------------------------
>> -
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
>> clktrk _______________________________________________
>> saxon-help mailing list archived at http://saxon.markmail.org/ 
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/saxon-help
>
>
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> Docbook FAQ.
> http://www.dpawson.co.uk
>
> ----------------------------------------------------------------------
> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
> Server from Actuate! Instantly Supercharge Your Business Reports and
> Dashboards with Interactivity, Sharing, Native Excel Exports, App
> Integration & more Get technology previously reserved for
> billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
> clktrk _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/ 
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help
> ----------------------------------------------------------------------
> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
> Server from Actuate! Instantly Supercharge Your Business Reports and
> Dashboards with Interactivity, Sharing, Native Excel Exports, App
> Integration & more Get technology previously reserved for
> billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
> clktrk _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/ 
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help
>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/ [hidden email] https://lists.sourceforge.net/lists/listinfo/saxon-help 
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help