cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <>
Subject Re: Using docbook chunk.xsl with cocoon
Date Tue, 28 Jan 2003 02:39:13 GMT
On Sun, Jan 26, 2003 at 10:03:10AM +0800, Perry Molendijk wrote:
> > I can post details if that's the problem you're trying to solve.
> Jeff that would be great if you could post this.

(sorry for the delay)

I used something close to this:

  <map:transformer name="xpath"

<map:match pattern="manual/*.xml">

  <map:generate src="content/xdocs/manual.xml"/>
  <map:transform src="resources/stylesheets/docbook2document.xsl"/>
  <map:transform type="xpath">
    <map:parameter name="include" value="document/header | document/body/section[title='{1}']"/>
  <map:transform src="resources/stylesheets/localizeheader.xsl"/>
  <map:serialize type="xml"/>

Where 'localizeheader.xsl' fixes the title:

<xsl:template match="header/title">
  <title><xsl:value-of select="/document/body/section/title"/></title>

Actual sitemap + transformer available with:

cvs login
cvs co Anteater/src/documentation


> Thanks
> Perry Molendijk 

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message