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

"Gregor J. Rothfuss" <[email protected]> Tue, 13 May 2003 17:31:17 +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-serv7654/src/webapp/lenya/pubs/default/xslt

Modified Files:
	simple2html.xsl 
Log Message:
getting tired of this xopus business..

Index: simple2html.xsl
===================================================================
RCS file: /repository/lenya/src/webapp/lenya/pubs/default/xslt/simple2html.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** simple2html.xsl	5 May 2003 18:15:10 -0000	1.2
--- simple2html.xsl	13 May 2003 15:31:15 -0000	1.3
***************
*** 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 ----
! <?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