You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2006/02/27 16:21:00 UTC
svn commit: r381357 -
/lenya/trunk/src/java/org/apache/lenya/cms/publication/util/XlinkCollection.java
Author: andreas
Date: Mon Feb 27 07:20:55 2006
New Revision: 381357
URL: http://svn.apache.org/viewcvs?rev=381357&view=rev
Log:
Use Document.getSourceURI() for XLink href in XLinkCollection
Modified:
lenya/trunk/src/java/org/apache/lenya/cms/publication/util/XlinkCollection.java
Modified: lenya/trunk/src/java/org/apache/lenya/cms/publication/util/XlinkCollection.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/cms/publication/util/XlinkCollection.java?rev=381357&r1=381356&r2=381357&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/publication/util/XlinkCollection.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/publication/util/XlinkCollection.java Mon Feb 27 07:20:55 2006
@@ -74,14 +74,7 @@
* @throws DocumentException when something went wrong.
*/
protected String getXlinkHref(Document document) throws DocumentException {
- String path = null;
- try {
- path = document.getFile().getCanonicalPath();
- } catch (IOException e) {
- throw new DocumentException("Couldn't found the file path for the document ["
- + document + "]", e);
- }
- return path;
+ return document.getSourceURI();
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org