Michael Wechner wrote:
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

For the moment, it would be even easier not to re-write a document if
the resource type doesn't provide any link rewriting XPaths.

-- Andreas



--
Andreas Hartmann
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
[EMAIL PROTECTED]                     [EMAIL PROTECTED]


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

Reply via email to