[Zope3-dev] Re: Better access to APIs in paths (was Re:
needingviewsclues - template/title troubles)
John D. Heintz
jheintz@isogen.com
25 Feb 2003 15:32:04 -0600
I think that was just an omission...
Actually, Shane just responded with a good example.
John
On Tue, 2003-02-25 at 15:19, Jim Fulton wrote:
> Craeg K Strong wrote:
> >> I have a hard time believing that someone familiar with
> >> xml namespaces will find that their experience with xml namespaces
> >> is much help in reading:
> >>
> >> <body tal:namespace="dc zope://zope.app.dublincore">
> >> ...
> >>
> >> <p tal:content="context/dc:title">Title here</p>
> >>
> >> ...
> >>
> >> </body>
> >
> >
> >
> > Well, I might have an easier time reading the following:
> >
> > <body talns:dc="http://purl.org/dc/elements/1.1/">
> >
> > ...
> > <p tal:content="context/dc:title">Title here</p>
> > ...
> > </body>
> >
> > I can leverage my experience with XSLT, where you will commonly see things
> > like the following:
> >
> > <?xml version="1.0"?>
> > <xsl:stylesheet
> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > xmlns:dyn="http://exslt.org/dynamic"
> > extension-element-prefixes="dyn"
> > version="1.0">
> > ...
> > <xsl:template match="Document">
> > <xsl:apply-templates/>
> > </xsl:template>
> > ....
> > </xsl:stylesheet>
>
> But nowhere in your xslt is the namespace prefix stuck inside,
> much less the middle of, an attribute value.
>
> jim
>
>
> --
> Jim Fulton mailto:jim@zope.com Python Powered!
> CTO (888) 344-4332 http://www.python.org
> Zope Corporation http://www.zope.com http://www.zope.org
>
--
John D. Heintz | Senior Developer
1016 La Posada Dr. | Suite 240 | Austin TX 78752
T 512.380.0347 | jheintz at isogen.com
http://www.isogen.com