lenya/src/webapp/lenya/pubs/default/xslt/authoring bitflux2simple.xsl,1.3,1.4
"Gregor J. Rothfuss" <[email protected]> Mon, 19 May 2003 10:20:09 +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-serv26636/src/webapp/lenya/pubs/default/xslt/authoring Modified Files: bitflux2simple.xsl Log Message: bitflux support is etching closer. more elements added to css, improved xslt Index: bitflux2simple.xsl =================================================================== RCS file: /repository/lenya/src/webapp/lenya/pubs/default/xslt/authoring/bitflux2simple.xsl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** bitflux2simple.xsl 16 May 2003 14:46:10 -0000 1.3 --- bitflux2simple.xsl 19 May 2003 08:20:07 -0000 1.4 *************** *** 3,24 **** <xsl:template match="/"> - <html> <head> <title>bla</title> </head> ! <body contentEditable="true"> ! <xsl:apply-templates select="/body"/> ! </body> </html> </xsl:template> <!-- Copies everything else to the result tree --> ! <xsl:template match="@* | node()"> ! <xsl:copy> ! <xsl:apply-templates select="@* | node()"/> ! </xsl:copy> ! </xsl:template> </xsl:stylesheet> --- 3,32 ---- <xsl:template match="/"> <html> <head> <title>bla</title> </head> ! <xsl:apply-templates select="/*[local-name()='body']"/> </html> </xsl:template> + <xsl:template match="/*[local-name()='body']"> + <body contentEditable="true"> + <xsl:for-each select="."> + <xsl:apply-templates/> + </xsl:for-each> + </body> + </xsl:template> + <!-- Copies everything else to the result tree --> ! <xsl:template match="*"> ! <xsl:copy> ! <xsl:for-each select="@*"> ! <xsl:copy/> ! </xsl:for-each> ! <xsl:apply-templates select="node()"/> ! </xsl:copy> ! </xsl:template> </xsl:stylesheet>