lenya/src/webapp/lenya/pubs/default/xslt xhtml-authoring.xsl,1.2,1.3 tree.xsl,1.2,1.3 simple2html.xsl,1.3,1.4 simple-live.xsl,1.2,1.3 simple-authoring.xsl,1.2,1.3
Christian Egli <[email protected]> Wed, 14 May 2003 15:23:05 +0200
| Newsgroups | gmane.comp.cms.wyona.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /repository/lenya/src/webapp/lenya/pubs/default/xslt
In directory erbium:/tmp/cvs-serv24557
Modified Files:
xhtml-authoring.xsl tree.xsl simple2html.xsl simple-live.xsl
simple-authoring.xsl
Log Message:
Make sure these files have unix line endings.
Index: xhtml-authoring.xsl
===================================================================
RCS file: /repository/lenya/src/webapp/lenya/pubs/default/xslt/xhtml-authoring.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** xhtml-authoring.xsl 12 May 2003 16:17:03 -0000 1.2
--- xhtml-authoring.xsl 14 May 2003 13:23:02 -0000 1.3
***************
*** 1 ****
! <?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:include href="../../../xslt/menu/root.xsl"/>
<xsl:template match="cmsbody">
<xsl:copy-of select="*"/>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
--- 1,12 ----
! <?xml version="1.0" encoding="ISO-8859-1"?>
!
! <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
!
! <xsl:include href="../../../xslt/menu/root.xsl"/>
!
! <xsl:template match="cmsbody">
! <xsl:copy-of select="*"/>
! </xsl:template>
!
! </xsl:stylesheet>
!
Index: tree.xsl
===================================================================
RCS file: /repository/lenya/src/webapp/lenya/pubs/default/xslt/tree.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** tree.xsl 14 May 2003 12:55:37 -0000 1.2
--- tree.xsl 14 May 2003 13:23:02 -0000 1.3
***************
*** 1,81 ****
! <?xml version="1.0"?>
! <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
!
! <xsl:template match="/">
! <div id="xopus_treeview">
! <xsl:apply-templates/>
! </div>
! </xsl:template>
!
! <!-- Template for attributes not handled elsewhere -->
! <xsl:template match="@*" xml:space="preserve">
! <xsl:if test="not(namespace-uri()='http://www.xopus.org/xmlns/id')">
! <SPAN><xsl:attribute name="class">xopus_treeview_<xsl:if test="xsl:*/@*">x</xsl:if>t</xsl:attribute> <xsl:value-of select="string(name())"/></SPAN><SPAN class="xopus_treeview_m">="</SPAN><SPAN class="xopus_treeview_tx"><xsl:value-of select="."/></SPAN><SPAN class="xopus_treeview_m">"</SPAN>
! </xsl:if>
! </xsl:template>
!
! <!-- Template for attributes in the xmlns or xml namespace -->
! <xsl:template match="@xmlns:*|@xmlns|@xml:*"><SPAN class="xopus_treeview_ns"> <xsl:value-of select="string(name())"/></SPAN><SPAN class="xopus_treeview_m">="</SPAN><SPAN class="xopus_treeview_ns"><xsl:value-of select="."/></SPAN><SPAN class="xopus_treeview_m">"</SPAN></xsl:template>
!
! <!-- Template for text nodes -->
! <xsl:template match="text()">
! <xsl:if test="string-length(normalize-space(.))>0">
! <DIV class="xopus_treeview_e">
! <SPAN class="xopus_treeview_b"> </SPAN>
! <SPAN class="xopus_treeview_tx"><xsl:value-of select="."/></SPAN>
! </DIV>
! </xsl:if>
! </xsl:template>
!
! <!-- Template for comment nodes -->
! <xsl:template match="comment()">
! <DIV class="xopus_treeview_k">
! <SPAN><A class="xopus_treeview_b" onclick="return false" onfocus="h()" STYLE="visibility:hidden">-</A> <SPAN class="xopus_treeview_m"><!--</SPAN></SPAN>
! <SPAN id="clean" class="xopus_treeview_ci"><PRE><xsl:value-of select="."/></PRE></SPAN>
! <SPAN class="xopus_treeview_b"> </SPAN> <SPAN class="xopus_treeview_m">--></SPAN>
! <SCRIPT>f(clean);</SCRIPT></DIV>
! </xsl:template>
!
! <!-- Template for elements not handled elsewhere (leaf nodes) -->
! <xsl:template match="*">
! <xsl:if test="not(namespace-uri()='http://www.xopus.org/xmlns/id')">
! <DIV class="xopus_treeview_e"><DIV STYLE="margin-left:1em;text-indent:-2em">
! <SPAN class="xopus_treeview_b"> </SPAN>
! <SPAN class="xopus_treeview_m"><</SPAN><SPAN><xsl:attribute name="class">xopus_treeview_<xsl:if test="xsl:*">x</xsl:if>t</xsl:attribute><xsl:value-of select="string(name())"/></SPAN> <xsl:apply-templates select="@*"/><SPAN class="xopus_treeview_m"> /></SPAN>
! </DIV></DIV>
! </xsl:if>
! </xsl:template>
!
! <!-- Template for elements with comment, pi and/or cdata children -->
! <xsl:template match="*[node()]">
! <xsl:if test="not(namespace-uri()='http://www.xopus.org/xmlns/id')">
! <DIV class="xopus_treeview_e">
! <DIV class="xopus_treeview_c"><A href="#" onclick="return false" onfocus="h()" class="xopus_treeview_b">-</A> <SPAN class="xopus_treeview_m"><</SPAN><SPAN><xsl:attribute name="class">xopus_treeview_<xsl:if test="xsl:*">x</xsl:if>t</xsl:attribute><xsl:value-of select="string(name())"/></SPAN><xsl:apply-templates select="@*"/> <SPAN class="xopus_treeview_m">></SPAN></DIV>
! <DIV><xsl:apply-templates/>
! <DIV><SPAN class="xopus_treeview_b"> </SPAN> <SPAN class="xopus_treeview_m"></</SPAN><SPAN><xsl:attribute name="class">xopus_treeview_<xsl:if test="xsl:*">x</xsl:if>t</xsl:attribute><xsl:value-of select="string(name())"/></SPAN><SPAN class="xopus_treeview_m">></SPAN></DIV>
! </DIV></DIV>
! </xsl:if>
! </xsl:template>
!
! <!-- Template for elements with only text children -->
! <xsl:template match="*[text() and not(comment())]">
! <xsl:if test="not(namespace-uri()='http://www.xopus.org/xmlns/id')">
! <DIV class="xopus_treeview_e"><DIV STYLE="margin-left:1em;text-indent:-2em">
! <SPAN class="xopus_treeview_b"> </SPAN> <SPAN class="xopus_treeview_m"><</SPAN><SPAN><xsl:attribute name="class">xopus_treeview_<xsl:if test="xsl:*">x</xsl:if>t</xsl:attribute><xsl:value-of select="string(name())"/></SPAN><xsl:apply-templates select="@*"/>
! <SPAN class="xopus_treeview_m">></SPAN><SPAN class="xopus_treeview_tx"><xsl:value-of select="text()"/></SPAN><SPAN class="xopus_treeview_m"></</SPAN><SPAN><xsl:attribute name="class">xopus_treeview_<xsl:if test="xsl:*">x</xsl:if>t</xsl:attribute><xsl:value-of select="string(name())"/></SPAN><SPAN class="xopus_treeview_m">></SPAN>
! </DIV></DIV>
! </xsl:if>
! </xsl:template>
!
! <!-- Template for elements with element children -->
! <xsl:template match="*[*]">
! <xsl:if test="not(namespace-uri()='http://www.xopus.org/xmlns/id')">
! <DIV class="xopus_treeview_e">
! <DIV class="xopus_treeview_c" STYLE="margin-left:1em;text-indent:-2em"><SPAN class="xopus_treeview_b">-</SPAN> <SPAN class="xopus_treeview_m"><</SPAN><SPAN><xsl:attribute name="class">xopus_treeview_<xsl:if test="xsl:*">x</xsl:if>t</xsl:attribute><xsl:value-of select="string(name())"/></SPAN><xsl:apply-templates select="@*"/> <SPAN class="xopus_treeview_m">></SPAN></DIV>
! <DIV><xsl:apply-templates/>
! <DIV><SPAN class="xopus_treeview_b"> </SPAN> <SPAN class="xopus_treeview_m"></</SPAN><SPAN><xsl:attribute name="class">xopus_treeview_<xsl:if test="xsl:*">x</xsl:if>t</xsl:attribute><xsl:value-of select="string(name())"/></SPAN><SPAN class="xopus_treeview_m">></SPAN></DIV>
! </DIV></DIV>
! </xsl:if>
! </xsl:template>
!
! </xsl:stylesheet>
--- 1,81 ----
! <?xml version="1.0"?>
! <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
!
! <xsl:template match="/">
! <div id="xopus_treeview">
! <xsl:apply-templates/>
! </div>
! </xsl:template>
!
! <!-- Template for attributes not handled elsewhere -->
! <xsl:template match="@*" xml:space="preserve">
! <xsl:if test="not(namespace-uri()='http://www.xopus.org/xmlns/id')">
! <SPAN><xsl:attribute name="class">xopus_treeview_<xsl:if test="xsl:*/@*">x</xsl:if>t</xsl:attribute> <xsl:value-of select="string(name())"/></SPAN><SPAN class="xopus_treeview_m">="</SPAN><SPAN class="xopus_treeview_tx"><xsl:value-of select="."/></SPAN><SPAN class="xopus_treeview_m">"</SPAN>
! </xsl:if>
! </xsl:template>
!
! <!-- Template for attributes in the xmlns or xml namespace -->
! <xsl:template match="@xmlns:*|@xmlns|@xml:*"><SPAN class="xopus_treeview_ns"> <xsl:value-of select="string(name())"/></SPAN><SPAN class="xopus_treeview_m">="</SPAN><SPAN class="xopus_treeview_ns"><xsl:value-of select="."/></SPAN><SPAN class="xopus_treeview_m">"</SPAN></xsl:template>
!
! <!-- Template for text nodes -->
! <xsl:template match="text()">
! <xsl:if test="string-length(normalize-space(.))>0">
! <DIV class="xopus_treeview_e">
! <SPAN class="xopus_treeview_b"> </SPAN>
! <SPAN class="xopus_treeview_tx"><xsl:value-of select="."/></SPAN>
! </DIV>
! </xsl:if>
! </xsl:template>
!
! <!-- Template for comment nodes -->
! <xsl:template match="comment()">
! <DIV class="xopus_treeview_k">
! <SPAN><A class="xopus_treeview_b" onclick="return false" onfocus="h()" STYLE="visibility:hidden">-</A> <SPAN class="xopus_treeview_m"><!--</SPAN></SPAN>
! <SPAN id="clean" class="xopus_treeview_ci"><PRE><xsl:value-of select="."/></PRE></SPAN>
! <SPAN class="xopus_treeview_b"> </SPAN> <SPAN class="xopus_treeview_m">--></SPAN>
! <SCRIPT>f(clean);</SCRIPT></DIV>
! </xsl:template>
!
! <!-- Template for elements not handled elsewhere (leaf nodes) -->
! <xsl:template match="*">
! <xsl:if test="not(namespace-uri()='http://www.xopus.org/xmlns/id')">
! <DIV class="xopus_treeview_e"><DIV STYLE="margin-left:1em;text-indent:-2em">
! <SPAN class="xopus_treeview_b"> </SPAN>
! <SPAN class="xopus_treeview_m"><</SPAN><SPAN><xsl:attribute name="class">xopus_treeview_<xsl:if test="xsl:*">x</xsl:if>t</xsl:attribute><xsl:value-of select="string(name())"/></SPAN> <xsl:apply-templates select="@*"/><SPAN class="xopus_treeview_m"> /></SPAN>
! </DIV></DIV>
! </xsl:if>
! </xsl:template>
!
! <!-- Template for elements with comment, pi and/or cdata children -->
! <xsl:template match="*[node()]">
! <xsl:if test="not(namespace-uri()='http://www.xopus.org/xmlns/id')">
! <DIV class="xopus_treeview_e">
! <DIV class="xopus_treeview_c"><A href="#" onclick="return false" onfocus="h()" class="xopus_treeview_b">-</A> <SPAN class="xopus_treeview_m"><</SPAN><SPAN><xsl:attribute name="class">xopus_treeview_<xsl:if test="xsl:*">x</xsl:if>t</xsl:attribute><xsl:value-of select="string(name())"/></SPAN><xsl:apply-templates select="@*"/> <SPAN class="xopus_treeview_m">></SPAN></DIV>
! <DIV><xsl:apply-templates/>
! <DIV><SPAN class="xopus_treeview_b"> </SPAN> <SPAN class="xopus_treeview_m"></</SPAN><SPAN><xsl:attribute name="class">xopus_treeview_<xsl:if test="xsl:*">x</xsl:if>t</xsl:attribute><xsl:value-of select="string(name())"/></SPAN><SPAN class="xopus_treeview_m">></SPAN></DIV>
! </DIV></DIV>
! </xsl:if>
! </xsl:template>
!
! <!-- Template for elements with only text children -->
! <xsl:template match="*[text() and not(comment())]">
! <xsl:if test="not(namespace-uri()='http://www.xopus.org/xmlns/id')">
! <DIV class="xopus_treeview_e"><DIV STYLE="margin-left:1em;text-indent:-2em">
! <SPAN class="xopus_treeview_b"> </SPAN> <SPAN class="xopus_treeview_m"><</SPAN><SPAN><xsl:attribute name="class">xopus_treeview_<xsl:if test="xsl:*">x</xsl:if>t</xsl:attribute><xsl:value-of select="string(name())"/></SPAN><xsl:apply-templates select="@*"/>
! <SPAN class="xopus_treeview_m">></SPAN><SPAN class="xopus_treeview_tx"><xsl:value-of select="text()"/></SPAN><SPAN class="xopus_treeview_m"></</SPAN><SPAN><xsl:attribute name="class">xopus_treeview_<xsl:if test="xsl:*">x</xsl:if>t</xsl:attribute><xsl:value-of select="string(name())"/></SPAN><SPAN class="xopus_treeview_m">></SPAN>
! </DIV></DIV>
! </xsl:if>
! </xsl:template>
!
! <!-- Template for elements with element children -->
! <xsl:template match="*[*]">
! <xsl:if test="not(namespace-uri()='http://www.xopus.org/xmlns/id')">
! <DIV class="xopus_treeview_e">
! <DIV class="xopus_treeview_c" STYLE="margin-left:1em;text-indent:-2em"><SPAN class="xopus_treeview_b">-</SPAN> <SPAN class="xopus_treeview_m"><</SPAN><SPAN><xsl:attribute name="class">xopus_treeview_<xsl:if test="xsl:*">x</xsl:if>t</xsl:attribute><xsl:value-of select="string(name())"/></SPAN><xsl:apply-templates select="@*"/> <SPAN class="xopus_treeview_m">></SPAN></DIV>
! <DIV><xsl:apply-templates/>
! <DIV><SPAN class="xopus_treeview_b"> </SPAN> <SPAN class="xopus_treeview_m"></</SPAN><SPAN><xsl:attribute name="class">xopus_treeview_<xsl:if test="xsl:*">x</xsl:if>t</xsl:attribute><xsl:value-of select="string(name())"/></SPAN><SPAN class="xopus_treeview_m">></SPAN></DIV>
! </DIV></DIV>
! </xsl:if>
! </xsl:template>
!
! </xsl:stylesheet>
Index: simple2html.xsl
===================================================================
RCS file: /repository/lenya/src/webapp/lenya/pubs/default/xslt/simple2html.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** simple2html.xsl 13 May 2003 15:31:15 -0000 1.3
--- simple2html.xsl 14 May 2003 13:23:02 -0000 1.4
***************
*** 1 ****
! <?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="ISO-8859-1"/>
<xsl:template match="simple-document">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="body">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="p">
<p><xsl:apply-templates /></p>
</xsl:template>
<!-- table -->
<xsl:template match="informaltable">
<xsl:element name="table">
<xsl:attribute name="border"><xsl:value-of select="@border"/></xsl:attribute>
<xsl:apply-templates />
</xsl:element>
</xsl:template>
<xsl:template match="row">
<tr><xsl:apply-templates /></tr>
</xsl:template>
<xsl:template match="tbody">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="entry">
<td><xsl:apply-templates /></td>
</xsl:template>
<xsl:template match="subtitle">
<h1><xsl:apply-templates /></h1>
</xsl:template>
<xsl:template match="listitem">
<ul><xsl:apply-templates /></ul>
</xsl:template>
<xsl:template match="itemizedlist">
<li><xsl:apply-templates /></li>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
--- 1,51 ----
! <?xml version="1.0" encoding="ISO-8859-1"?>
!
! <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
!
! <xsl:output encoding="ISO-8859-1"/>
!
! <xsl:template match="simple-document">
! <xsl:apply-templates />
! </xsl:template>
!
! <xsl:template match="body">
! <xsl:apply-templates />
! </xsl:template>
!
! <xsl:template match="p">
! <p><xsl:apply-templates /></p>
! </xsl:template>
!
! <!-- table -->
! <xsl:template match="informaltable">
! <xsl:element name="table">
! <xsl:attribute name="border"><xsl:value-of select="@border"/></xsl:attribute>
! <xsl:apply-templates />
! </xsl:element>
! </xsl:template>
!
! <xsl:template match="row">
! <tr><xsl:apply-templates /></tr>
! </xsl:template>
!
! <xsl:template match="tbody">
! <xsl:apply-templates />
! </xsl:template>
!
! <xsl:template match="entry">
! <td><xsl:apply-templates /></td>
! </xsl:template>
!
! <xsl:template match="subtitle">
! <h1><xsl:apply-templates /></h1>
! </xsl:template>
!
! <xsl:template match="listitem">
! <ul><xsl:apply-templates /></ul>
! </xsl:template>
!
! <xsl:template match="itemizedlist">
! <li><xsl:apply-templates /></li>
! </xsl:template>
!
! </xsl:stylesheet>
\ No newline at end of file
Index: simple-live.xsl
===================================================================
RCS file: /repository/lenya/src/webapp/lenya/pubs/default/xslt/simple-live.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** simple-live.xsl 12 May 2003 16:17:03 -0000 1.2
--- simple-live.xsl 14 May 2003 13:23:02 -0000 1.3
***************
*** 1 ****
! <?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:include href="../../../xslt/menu/live-root.xsl"/>
<xsl:template match="cmsbody">
<xsl:copy-of select="*"/>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
--- 1,12 ----
! <?xml version="1.0" encoding="ISO-8859-1"?>
!
! <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
!
! <xsl:include href="../../../xslt/menu/live-root.xsl"/>
!
! <xsl:template match="cmsbody">
! <xsl:copy-of select="*"/>
! </xsl:template>
!
! </xsl:stylesheet>
!
Index: simple-authoring.xsl
===================================================================
RCS file: /repository/lenya/src/webapp/lenya/pubs/default/xslt/simple-authoring.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** simple-authoring.xsl 12 May 2003 16:17:03 -0000 1.2
--- simple-authoring.xsl 14 May 2003 13:23:02 -0000 1.3
***************
*** 1 ****
! <?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:include href="../../../xslt/menu/root.xsl"/>
<xsl:template match="cmsbody">
<xsl:copy-of select="*"/>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
--- 1,12 ----
! <?xml version="1.0" encoding="ISO-8859-1"?>
!
! <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
!
! <xsl:include href="../../../xslt/menu/root.xsl"/>
!
! <xsl:template match="cmsbody">
! <xsl:copy-of select="*"/>
! </xsl:template>
!
! </xsl:stylesheet>
!