Andreas Hartmann wrote:

[EMAIL PROTECTED] wrote:

Author: michi
Date: Fri Mar 17 04:46:03 2006
New Revision: 386634

URL: http://svn.apache.org/viewcvs?rev=386634&view=rev
Log:
ignore non-XML files

Modified:
lenya/trunk/src/java/org/apache/lenya/cms/site/usecases/LinkRewriterImpl.java


[...]

+            } catch (SAXParseException e) {
+ getLogger().warn("Document [" + examinedDocument + "] is not XML and will be ignored!");


There should be a more elegant way to do this. A SAXParseException
could have multiple causes, not only that the source is not an XML document.

We could ask the resource type for the link-rewriting service to
use. Resource types for binary resources could use a service which
just ignores the document.

WDYT?


yes, makes sense



+                } else {
+ getLogger().warn("HUGO: No such document: " + examinedDocument.getSourceURI());


Hmmm, why should Hugo be particularly interested in this message? :)


sorry for that. I have just removed it.

Michi


-- Andreas



--
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
[EMAIL PROTECTED]                        [EMAIL PROTECTED]
+41 44 272 91 61


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to