cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Łukasz Ronikier <lro...@netventure.pl>
Subject Invalid System ID
Date Wed, 03 Mar 2004 11:46:37 GMT
Hi there,
I have a problem which I cannot solve.
I wrote a generator with the following code ...

...

 AttributesImpl myAttr = new AttributesImpl();

   myAttr.addAttribute("http://apache.org/cocoon/include/1.0",
           "select",
           "select",
           "CDATA",
           "/*/child::*");

   myAttr.addAttribute("http://apache.org/cocoon/include/1.0",
           "src",
           "src",
           "CDATA",

"context:/style/stylesheets/"+tempRs.getString("myStyleSheetFile"));


contentHandler.startElement("http://apache.org/cocoon/include/1.0","incl
ude","include",myAttr);


contentHandler.endElement("http://apache.org/cocoon/include/1.0","includ
e","include");
   myAttr.clear();

...

... it generates the following XML ...

<?xml version="1.0" encoding="UTF-8" ?>
  <xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:cinclude="http://apache.org/cocoon/include/1.0">
  <cinclude:include select="/*/child::*"
src="context:/style/stylesheets/document.xsl" />
  <cinclude:include select="/*/child::*"
src="context:/style/stylesheets/page.xsl" />
</xsl:stylesheet>

... but when I try to transforn it with CInclude Transformer using the
folowing entry in the sitemap.xmap ...

...
      <map:match pattern="style/stylesheets/*">
        <map:generate type="myGenerator"/>
        <map:transform type="cinclude"/> -->
        <map:serialize type="xml"/>
      </map:match>
...
... I get the following error ...

org.apache.cocoon.ProcessingException: java.net.MalformedURLException:
Invalid System ID: java.lang.RuntimeException:
java.net.MalformedURLException: Invalid System ID

... and the same XML passed directly from a file ....
...
<map:generate type="file" src="myXML.xml" />
...
... works fine.

Please, please, help.
Best regards
Lou




-- 
Łukasz Ronikier
  Netventure, http://www.netventure.pl/
  ul. Kozłowskiej 1, 00-710 Warszawa
  tel.: (0-22) 6519430, fax: (0-22) 6518604

-- 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message