ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Online Bookstore
Date Tue, 24 May 2005 10:56:50 GMT
We keep the data for the resource page [1] in xdocs [2]. The html page
is generated via Anakia stylesheet [3]. 

Ted provided an example [4]: at the buttom is a box "Available from" where
are some
links to several book resellers.

The idea is
- store the ISBN in an extra tag in the xdoc
  <th>ISBN:</th>  <th id="isbn"> ... </th>
- use the VM makro to generate the link passage


Jan


Example:

resources.xml
---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<
----
...
<subsection name="Ant: The Definitive Guide, 2nd edition">
  <p>Published April 2005, and covers Ant release 1.6.1.</p> 
  <p>This is a complete rewrite of the first edition; this book is now 290
pages and so covers Ant in more depth than its  predecessor.</p> 
  <p>It also mixes reference information (tables) with text explanation on
how to use the tasks. Contents includes JUnit, CVS,  execution, basic
deployment, Web application development and XDoclet. There is also coverage
of XDoclet, and a chapter on how to  extend Ant in Java.</p> 
  <table class="externals">
  <tr>
  <th>Author:</th> 
  <td>Steve Holzner</td> 
  </tr>
  <tr>
  <th>URL:</th> 
  <td>
  <a
href="http://www.oreilly.com/catalog/anttdg2/">http://www.oreilly.com/catalo
g/anttdg2/</a> 
  </td>
  </tr>
  <tr>
  <th>ISBN:</th>
  <th>0596006098</th>
  </tr>
  </table>
</subsection>
...
---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<
----


templates: TBD


resources.html
---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<
----
...
<tr>
<th colspan="1" rowspan="1" valign="top" align="left">ISBN:</th>
<td colspan="1" rowspan="1" valign="top" align="left">0596006098</td>
</tr>
<tr>
<th colspan="1" rowspan="1" valign="top" align="left">Available from:</th>
<td colspan="1" rowspan="1" valign="top" align="left"><ul>
  <li><a
href="http://www.amazon.com/exec/obidos/tg/detail/-/0596006098/apachesoftwar
-20/">Amazon.com</a></li>
  <li><a
href="http://service.bfast.com/bfast/click?bfmid=2181&amp;bfmtype=book&amp;s
ourceid=41462544&amp;bfpid=0596006098">Barnes  &amp; Noble</a></li>
  <li><a
href="http://www.booksense.com/product/info.jsp?affiliateId=Apache&amp;isbn=
0596006098">Book Sense</a></li>
  <li><a
href="http://www.powells.com/cgi-bin/biblio?inkey=61-0596006098-0&amp;partne
r_id=29693">Powells.com</a></li>
</ul></td>
</tr>
...
---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<
----



[1] http://ant.apache.org/resources.html#books
[2]
http://cvs.apache.org/viewcvs.cgi/*checkout*/ant/xdocs/resources.xml?content
-type=text%2Fplain
[3]
http://cvs.apache.org/viewcvs.cgi/ant/xdocs/stylesheets/templates.vm?view=ma
rkup
[4]
http://opensource.atlassian.com/confluence/oss/pages/viewpage.action?pageId=
231


> -----Ursprüngliche Nachricht-----
> Von: Stefan Bodewig [mailto:bodewig@apache.org]
> Gesendet am: Dienstag, 24. Mai 2005 09:24
> An: dev@ant.apache.org
> Betreff: Re: Online Bookstore
> 
> On Tue, 24 May 2005, Jan Materne <Jan.Materne@rzf.fin-nrw.de> wrote:
> 
> > Especially for Ant we have a page [1] with books about Ant. That
> > page is generated via Anakia and it should be possible just to
> > change the template (maybe minor changes on the xdoc) to get links
> > to resellers and info site.
> > 
> > What´s your opinion?
> 
> I'm not sure I understand what you want to do.  What kind of links
> (where-to) do you want to add to which part of which page?
> 
> Stefan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message