> -----Original Message-----
> From: Sascha Teifke [mailto:[EMAIL PROTECTED]
>

Hi,

(*sigh*... Glen's right, you know. Question is actually more suited for
Mulberry, but here we go anyway...)

Normally, to keep the lenya:meta element from appearing in the ouput, all
you need to do is add an empty template like so:

<xsl:template match="lenya:meta"
xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0"; />

However, you will still run into trouble, since your source document is in
the XHTML namespace, and you only have templates for nodes that are in no
namespace...

> <?xml version="1.0" encoding="iso-8859-1"?>
> <xsl:stylesheet
>     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"
>     xmlns:fo="http://www.w3.org/1999/XSL/Format";

You want to add these bindings:
  xmlns:h="http://www.w3.org/1999/xhtml";
  xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0";

and to keep those namespaces from being repeated in the result:
  exclude-result-prefixes="h lenya"
>  >

Then, the templates need to be slightly adjusted:

>     <xsl:template match="h:p">
...
>     <xsl:template match="h:meta">
...
>     <xsl:template match="h:s1">
...
And an empty template:
  <xsl:template match="lenya:meta" />

Should work...

HTH!

Greetz,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to