jstrachan 02/05/30 04:03:20 Modified: jelly/src/java/org/apache/commons/jelly/tags/jsl JSLTagLibrary.java Log: Imported all the XML tags into the JSL tag library namespace, as per James Elson's suggestion, so that XSLT documents can be converted to Jelly pretty quicky by just changing the namespace URI. (We could do with providing mixedCaseTags -> mixed-case-tags aliases also - could be a standard TagLibrary feature). Also added an alias of <valueOf> which uses the Expr tag from the XML tag library Revision Changes Path 1.2 +4 -2 jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/jsl/JSLTagLibrary.java Index: JSLTagLibrary.java =================================================================== RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/jsl/JSLTagLibrary.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- JSLTagLibrary.java 25 May 2002 18:27:21 -0000 1.1 +++ JSLTagLibrary.java 30 May 2002 11:03:20 -0000 1.2 @@ -69,9 +69,10 @@ import org.apache.commons.jelly.JellyContext; import org.apache.commons.jelly.JellyException; import org.apache.commons.jelly.Script; -import org.apache.commons.jelly.TagLibrary; import org.apache.commons.jelly.expression.Expression; import org.apache.commons.jelly.expression.ExpressionFactory; +import org.apache.commons.jelly.tags.xml.ExprTag; +import org.apache.commons.jelly.tags.xml.XMLTagLibrary; import org.apache.commons.jelly.tags.xml.XPathExpression; import org.apache.commons.logging.Log; @@ -89,7 +90,7 @@ * @author <a href="mailto:[EMAIL PROTECTED]">James Strachan</a> * @version $Revision: 1.6 $ */ -public class JSLTagLibrary extends TagLibrary { +public class JSLTagLibrary extends XMLTagLibrary { /** The Log to which logging calls will be made. */ private Log log = LogFactory.getLog(JSLTagLibrary.class); @@ -98,6 +99,7 @@ registerTag("stylesheet", StylesheetTag.class); registerTag("template", TemplateTag.class); registerTag("applyTemplates", ApplyTemplatesTag.class); + registerTag("valueOf", ExprTag.class); } public Expression createExpression(
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>