ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34116] - Example XML syntax for Ant manual + matching XSLs
Date Tue, 22 Mar 2005 08:39:55 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34116>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34116





------- Additional Comments From jan@materne.de  2005-03-22 09:39 -------
Nice stuff in it. Especially the google and bugzilla search :-)

When looking into the WHATSNEW I played a little bit the these templates. It
would be nice if the taskname could be linked to the manual page. Because itīs
not easy to find the right link destination (CoreTypes|OptionalTasks|...) I
adopted the google search.

I didnīt change the WHATSNEW.xml, but made two modifications in the XSL:

1) a new template

  <xsl:template name="w:manual">
    <xsl:param name="name"/>
    <a
href="http://www.google.de/search?as_q={$name}&amp;as_occt=title&amp;as_sitesearch=http%3A%2F%2Fant.apache.org%2Fmanual%2F">
      <xsl:value-of select="$name" />
    </a>
  </xsl:template>


2) call of that template 
   <xsl:template match="*[starts-with(namespace-uri(), 'antlib:')]">     

-  <span class="tag"><xsl:value-of select="local-name()" /></span>
+  <span class="tag">
+    <xsl:call-template name="w:manual">
+      <xsl:with-param name="name" select="local-name()"/>
+    </xsl:call-template>
+  </span>



When looking into the manual I see a problem with more complex examples. E.g. in
<script> (last example).

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message