summaryrefslogtreecommitdiff
path: root/docs/tutorials/lxmlgraph/step03.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2008-07-28 05:31:47 +0000
committerChris McDonough <chrism@agendaless.com>2008-07-28 05:31:47 +0000
commit178623bbd8e9aab75b6206ef69f67b62edb3d12e (patch)
tree2442c1d41bdb13a41e4ab841fddcc091d5804ca2 /docs/tutorials/lxmlgraph/step03.rst
parent96e65d8e6d47a1b806c4d281e6890f77f86407c3 (diff)
downloadpyramid-178623bbd8e9aab75b6206ef69f67b62edb3d12e.tar.gz
pyramid-178623bbd8e9aab75b6206ef69f67b62edb3d12e.tar.bz2
pyramid-178623bbd8e9aab75b6206ef69f67b62edb3d12e.zip
Tweaks.
Diffstat (limited to 'docs/tutorials/lxmlgraph/step03.rst')
-rw-r--r--docs/tutorials/lxmlgraph/step03.rst17
1 files changed, 9 insertions, 8 deletions
diff --git a/docs/tutorials/lxmlgraph/step03.rst b/docs/tutorials/lxmlgraph/step03.rst
index 5e7911889..9edc77af3 100644
--- a/docs/tutorials/lxmlgraph/step03.rst
+++ b/docs/tutorials/lxmlgraph/step03.rst
@@ -60,8 +60,9 @@ Also add a function in ``views.py`` that looks like the following:
This function is relatively simple:
-#. Line 1 imports a ``repoze.bfg`` function that renders ZPT templates
- to a response. ``repoze.bfg`` uses the ``z3c.pt`` ZPT engine.
+#. Line 1 imports a :mod:`repoze.bfg` function that renders ZPT
+ templates to a response. :mod:`repoze.bfg` uses the ``z3c.pt`` ZPT
+ engine.
#. Line 2, like our other view functions, gets passed a ``context``
(the current hop in the URL) and WebOb ``request`` object.
@@ -160,11 +161,12 @@ to your ``views.py`` file:
#. Line 10 implements the difference. We call
``render_transform_to_response`` instead of
- ``render_template_to_response``. This tells ``repoze.bfg`` to make
- an XSLT processor for this template, instead of a ZPT. The second
- argument passes in ``context`` to the XSLT transform. ``context```
- is an instance of an Element node. Namely, a node from the XML
- document that corresponds to the current hop in the URL.
+ ``render_template_to_response``. This tells :mod:`repoze.bfg` to
+ make an XSLT processor for this template, instead of a ZPT. The
+ second argument passes in ``context`` to the XSLT transform.
+ ``context``` is an instance of an Element node. Namely, a node
+ from the XML document that corresponds to the current hop in the
+ URL.
``xsltview.xsl``
@@ -190,7 +192,6 @@ directory and give it the following contents:
#. Line 8 shows the element name of the current node.
-
Viewing the XSLT
--------------------