lenya/src/webapp/lenya/pubs/default/xslt/authoring bitflux2simple.xsl,1.2,1.3

"Gregor J. Rothfuss" <[email protected]> Fri, 16 May 2003 16:46:12 +0200
Newsgroups gmane.comp.cms.wyona.cvs
Message-ID <[email protected]>
Update of /repository/lenya/src/webapp/lenya/pubs/default/xslt/authoring
In directory erbium:/tmp/cvs-serv28999/src/webapp/lenya/pubs/default/xslt/authoring

Modified Files:
	bitflux2simple.xsl 
Log Message:
reworked bitflux stylesheet

Index: bitflux2simple.xsl
===================================================================
RCS file: /repository/lenya/src/webapp/lenya/pubs/default/xslt/authoring/bitflux2simple.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** bitflux2simple.xsl	14 May 2003 09:25:44 -0000	1.2
--- bitflux2simple.xsl	16 May 2003 14:46:10 -0000	1.3
***************
*** 1,7 ****
  <?xml version="1.0" encoding="utf-8"?>
! <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
!                               xmlns:xslout="Can be anything, doesn't matter">
! <xsl:output type="xml"/>
! <xsl:namespace-alias stylesheet-prefix="xslout" result-prefix="xsl"/>
  
  
--- 1,16 ----
  <?xml version="1.0" encoding="utf-8"?>
! <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
! 
! <xsl:template match="/">
! 
! <html>
! <head>
! <title>bla</title>
! </head>
! 	<body contentEditable="true">
!   			<xsl:apply-templates select="/body"/>
! 	</body>
! </html>
! </xsl:template>
  
  
***************
*** 12,62 ****
    </xsl:copy>
  </xsl:template>
- 
- 
- <!-- Replaces the html code of the editable section by the bitflux specific code -->
- <xsl:template match="body">
- 	<body contentEditable="true">
-                 <xslout:for-each select="preview">
-   			<xslout:apply-templates/>
-                 </xslout:for-each>
- 	</body>
- </xsl:template>
- 
- <xsl:template name="preview-bxe">
- 	<table border="0" cellpadding="2" cellspacing="0" bgcolor="#CCCCFF">
- 		<span bxe-editable="preview">
- 		</span>
- 	</table>
- </xsl:template>
- 
-   <xsl:template match="title">
-     <title contentEditable="true">
-       <xsl:for-each select=".">
-         <xsl:apply-templates/>
-       </xsl:for-each>
-     </title>
-   </xsl:template>
- 
- 
- <!-- Adds the stylesheet specific elements -->
- <xsl:template match="/">
-   <xslout:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-     <xslout:output type="xml"/>
-     <xslout:template match="/">
-       <xsl:apply-templates/>
-     </xslout:template>
- 
- 	Template used by Bitfluxeditor to make things editable 
-         <xslout:template match="*">
-                 <xslout:copy>
-                         <xslout:for-each select="@*">
-                                 <xslout:copy/>
-                         </xslout:for-each>
-                         <xslout:apply-templates select="node()"/>
-                 </xslout:copy>
-         </xslout:template>
- 
-   </xslout:stylesheet>
- </xsl:template>  
  
  </xsl:stylesheet>
--- 21,24 ----