[Zope-CMF] Re: xsl/xul and FSPageTemplate

Tres Seaver tseaver at palladion.com
Thu Aug 4 10:25:20 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jens Vagelpohl wrote:
> 
> On 4 Aug 2005, at 00:45, Andy McKay wrote:
> 
>> Not sure if you've written this, but a general FSXMLTemplate (not 
>> just XSL) would be nice for the rendering of xml Page Templates. In 
>> particular the problem I've wrangled with is inserting dynamically 
>> the <? xml parts at the top, for example what I really want to do is
>>
>> <?xml version="1.0"?>
>> <?xml-stylesheet type="text/xsl" href="rss.xsl"?>
>>
>> Where that really needs to be:
>>
>> <?xml-stylesheet type="text/xsl" href="rss.xsl"  tal:attributes="href
>> string:$portal_url/rss.xsl"?>
> 
> 
> Speaking of that, for one of my sites where I want to have XHTML 1.0 
> strict, I have tried to make the output compliant so it renders as  the
> "correct" type, "application/xhtml+xml" I believe it was, in the 
> browsers that understand it. This was more of a game than anything  else
> because that garbage browwser, IE, has no idea what to do with  that. I
> have found it impossible to get rendered output that is truly  compliant
> because the FSPageTemplate rendering would always insert an  empty line
> before what is supposed to be the very first element, the  "<?xml...". I
> haven't found a way to put that emement outside of my  main metal macro
> because then the parser would barf and claim the  template is erroneous.
> So IMHO there are more problems than "just"  retaining a file extension.

If we used Andy's '.metadata' idea, then the DOCTYPE and <?xml* stuff
could be jammed in before the template got a chance to muck it up.

+1 for the idea.

Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC8iVP+gerLs4ltQ4RAvrLAJwJj0xAyAiDmLpXbHlVVihUQc7U8QCgkZ5j
/RLC/KMkcCvl14NEJgcZp9c=
=O9Lf
-----END PGP SIGNATURE-----



More information about the Zope-CMF mailing list