You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2004/02/14 17:20:50 UTC

cvs commit: cocoon-lenya/src/webapp/lenya/xslt/bxeng link.xsl

gregor      2004/02/14 08:20:50

  Modified:    src/webapp/lenya/xslt/bxeng link.xsl
  Log:
  prepend contextprefix publication and area
  
  Revision  Changes    Path
  1.2       +2 -4      cocoon-lenya/src/webapp/lenya/xslt/bxeng/link.xsl
  
  Index: link.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/xslt/bxeng/link.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- link.xsl	14 Feb 2004 16:02:04 -0000	1.1
  +++ link.xsl	14 Feb 2004 16:20:50 -0000	1.2
  @@ -49,9 +49,7 @@
             function insertLink() { 
             var text = document.forms["link"].text.value;
             var title = document.forms["link"].title.value;
  -          if (document.forms["link"].url.length != 0) { 
  -                url = document.forms["link"].url.value;
  -          } 
  +          url = '<xsl:value-of select="$contextprefix"/>' + '/<xsl:value-of select="$publicationid"/>' + '/<xsl:value-of select="$area"/>' + document.forms["link"].url.value;
             var content = '<a xmlns="'+window.opener.XHTMLNS+'" href="'+url+'" title="'+title+'">'+text+'</a>'; 
             window.opener.bxe_insertContent(content,window.opener.bxe_ContextNode); 
             window.close();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org