cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Langham" <mlang...@sundn.de>
Subject XSL Problems (off topic)
Date Wed, 20 Dec 2000 09:54:52 GMT
Hi XSL gurus,

Sorry - off topic but I really am stuck.

I am stuck on a Stylesheet problem - perhaps someone with more XSL karma can
give me a hint what is wrong.

Using the org.apache.cocoon.generation.HTMLGenerator I get the following
XML:

>>>
<?xml version="1.0" encoding="UTF-8"?>
<html><head>
<meta name="generator" content="HTML Tidy, see www.w3.org"/>
<meta name="robots" content="noindex"/>
<script type="text/javascript" language="JavaScript" xml:space="preserve">

</script>

<title/>
</head><body text="000000" bgcolor="c0c0c0">
<form method="get" enctype="application/x-www-form-urlencoded">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<<<

Now I want to write a stylesheet to manipulate the XHTML. My test-stylesheet
looks like this:

>>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match="html">
<html>
<body>
<b>
<xsl:apply-templates/>
</b>
</body>
</html></xsl:template>

</xsl:stylesheet>
<<

So basically I just want to match on the incoming "html" tag and then do
something. This stylesheet works fine when I test the whole thing in
Execelon Stylus - however not in Cocoon! Everything is configured ok - but
the match="html" is never triggered! Any ideas?

Matthew

--
Open Source Group               sunShine - Lighting up e:Business
=================================================================
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel: +49-5251-1581-30   [mlangham@sundn.de - http://www.sundn.de]
=================================================================



Mime
View raw message