[Zope3-dev] Re: Better access to APIs in paths (was Re: needingviewsclues
- template/title troubles)
Jim Fulton
jim@zope.com
Tue, 25 Feb 2003 16:19:22 -0500
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