Hi all. The external-destination attribute of the fo:basic-link-Element must be an uri-specification. Uri specifications are defined in the spec as follows:
A sequence of characters that is "url(", followed by optional white space, followed by an optional single quote (') or double quote (") character, followed by a URI reference as defined in [RFC2396], followed by an optional single quote (') or double quote (") character, followed by optional white space, followed by ")". The two quote characters must be the same and must both be present or absent. If the URI reference contains a single quote, the two quote characters must be present and be double quotes. The current BasicLink implementation (in the maintainance branch) does not support the url()-syntax. The following patch should solve this. The patch allows also the former (incorrect) form of omitting the url() function. --Stefan *** fop/xml-fop/src/org/apache/fop/fo/flow/BasicLink.java Fri Nov 22 16:10:46 2002 --- projekte/infotakt/vdp/fop/src/org/apache/fop/fo/flow/BasicLink.java Wed Jan 22 13:06:02 2003 *************** *** 84,89 **** --- 84,97 ---- } else if (!(destination = this.properties.get("external-destination").getString()).equals("")) { linkType = LinkSet.EXTERNAL; + if (destination.startsWith("url(") && destination.endsWith(")")) { + destination = destination.substring(4, destination.length() - 1).trim(); + if (destination.startsWith("\"") && destination.endsWith("\"")) { + destination = destination.substring(1, destination.length() - 1); + } else if (destination.startsWith("'") && destination.endsWith("'")) { + destination = destination.substring(1, destination.length() - 1); + } + } } else { throw new FOPException("internal-destination or external-destination must be specified in basic-link"); } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]