...still a lot of content to put together!
... next will add as well as more content text/pdf book outputs
that the user can select from a link on the XML->HTML page.
... and javascript to make some rollovers work.
... and when the guys a cocoon finally provide a working jdk1.4
version (100%) then I can connect to my Oracle DB and things
will start to get more interesting.
... I am also thinking on the "editable" XML docbook solution, we
may use webdav to control versioning / file access.
Here is the XSL so far!
------------- The XSL -----------------
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"/>
<xsl:template match="/">
<xsl:apply-templates select="set"/>
</xsl:template>
<xsl:template match="set">
<xsl:apply-templates select="book"/>
<hr/>
<h5>
<xsl:value-of select="@lang"/>:<xsl:value-of
select="@revision"/>:<xsl:value-of select="@vendor"/>
</h5>
</xsl:template>
<xsl:template match="book">
<html>
<head>
<link rel="stylesheet" href="http://www.oyap.net/main.css"
type="text/css"/>
<title><xsl:value-of select="title" /></title>
</head>
<body>
<xsl:apply-templates select="preface" />
<xsl:apply-templates select="chapter" />
<h6><xsl:apply-templates select="bookinfo" /></h6>
</body>
</html>
</xsl:template>
<xsl:template match="preface">
<h3>
<xsl:apply-templates select="mediaobject" />
<xsl:value-of select="title" />
</h3>
<xsl:apply-templates select="para" />
</xsl:template>
<xsl:template match="chapter">
<h4>
<xsl:apply-templates select="mediaobject" />
<xsl:value-of select="title"></xsl:value-of>
</h4>
<xsl:apply-templates select="para" />
</xsl:template>
<xsl:template match="bookinfo">
<xsl:value-of select="legalnotice"></xsl:value-of><br/>
<xsl:apply-templates select="author" />
</xsl:template>
<xsl:template match="author">
<xsl:value-of select="firstname"></xsl:value-of>
<xsl:value-of select="surname"></xsl:value-of>
</xsl:template>
<xsl:template match="para">
<p>
<xsl:value-of select="."></xsl:value-of>
<xsl:apply-templates select="ulink" />
</p>
</xsl:template>
<xsl:template match="ulink">
<a href="{@url}" ><xsl:value-of select="."></xsl:value-of></a>
</xsl:template>
<xsl:template match="mediaobject">
<xsl:apply-templates select="imageobject" />
</xsl:template>
<xsl:template match="imageobject">
<xsl:apply-templates select="imagedata" />
</xsl:template>
<xsl:template match="imagedata">
<img name="{@id}" border="0" src="{@fileref}" align="absbottom"
alt="{@id}"/>
</xsl:template>
</xsl:stylesheet>
------------- The XSL -----------------
Stephen Smithstone wrote:
> Hell thats nice :-)
>
>
>
> On Wed, 2002-05-22 at 16:58, Paul Gilligan wrote:
> http://www.oyap.net/extra/index.html
>
> almost there....
>
> Vadim Gritsenko wrote:
>
> From: Adam Constabaris [mailto:[EMAIL PROTECTED]]
>
> The technical support site for the University of North Carolina at
>
> Chapel Hill
>
> uses Cocoon 1.8.2
>
> http://help.unc.edu
>
> Added.
>
> Vadim
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>