forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Flavio Tordini" <>
Subject problem adding tld document type
Date Tue, 29 Apr 2003 09:49:09 GMT
hi all,
forrest is a wonderful tool, but i'm having a problem generating
documentation for a tld file. i added this to sitemap.xmap:

<!-- TLD support (FT) -->
        <map:match pattern="body-taglib.xml">
          <map:generate src="content/xdocs/taglib.xml"/>
          <map:transform src="resources/stylesheets/tld2document.xsl"/>
          <map:call resource="skinit">
            <map:parameter name="type" value="document2html"/>
            <map:parameter name="path" value="taglib.xml"/>

i created the a basic xsl and added an item in site.xml.
but the xsl seem not to work.

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl=""
  <xsl:output method="xml" indent="no" doctype-system="document-v11.dtd"
doctype-public="-//APACHE//DTD Documentation V1.1//EN" encoding="UTF-8"/>
  <xsl:template match="/">
        <title>TITLE: <xsl:value-of select="taglib/short-name"/></title>
      <body>BODY: <xsl:value-of select="taglib/description"/>, TAGNAME:
<xsl:value-of select="name(child::*)"/></body>

on the generated HTML i see:
BODY: , TAGNAME: taglib

curiosly the xpath name() function works while all other value-of tags
return a blank string.

ANY SUGGESTIONS??? am i missing something?


View raw message