XSLT renderer wont work within Silva
"Jonathan Bowlas" <[email protected]> Fri, 25 Jan 2008 11:31:37 -0000
| Newsgroups | gmane.comp.web.zope.silva.devel,gmane.comp.web.zope.silva.general |
|---|---|
| Message-ID | <006c01c85f45$d9d49930$56ac2e52@bowlas> |
Hi All, I've created an XSLT renderer for a silva newsitem which works perfectly when I run it though an external XSLT IDE using an xml export of a news article but when I put it into Zope and apply it to a news article in Silva it doesn't want to match the templates. Could the xml generated by the export differ from the objects ParsedXML, or perhaps the object we're trying to render doesn't have any XML? Is there any way I can view the actual XML of a news article without using the xml export feature? I've attached both the xslt and the exported xml doc I've been using to test. Any help would be greatly appreciated. Cheers Jon _______________________________________________ silva-dev mailing list silva-dev-IAPFreCvJWM6s/[email protected] https://lists.infrae.com/mailman/listinfo/silva-dev
test.xslt
(application/octet-stream, 2.2 KB) - not displayed
news-article.xml
(text/xml, 3.7 KB)
<?xml version="1.0" encoding="UTF-8" ?> <silva xmlns="http://www.infrae.com/xml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.infrae.com/xml silva-0.9.3.xsd"> <silva_newsitem id="07110101"> <metadata xmlns:silva-extra="http://infrae.com/namespaces/metadata/silva-extra" xmlns:silva="http://infrae.com/namespaces/metadata/silva"> <silva-extra:comment><element type="string"></element></silva-extra:comment> <silva-extra:content_description><element type="string"></element></silva-extra:content_description> <silva-extra:contactname><element type="string"></element></silva-extra:contactname> <silva-extra:language><element type="string">EN</element></silva-extra:language> <silva-extra:creator><element type="string">admin</element></silva-extra:creator> <silva-extra:lastauthor><element type="string">Fiona Davidson</element></silva-extra:lastauthor> <silva-extra:creationtime><element type="date">2007/11/01 11:05:29.805 GMT</element></silva-extra:creationtime> <silva-extra:modificationtime><element type="date">2007/11/01 11:05:30.787 GMT</element></silva-extra:modificationtime> <silva-extra:contactemail><element type="string"></element></silva-extra:contactemail> <silva-extra:hide_from_tocs><element type="string">do not hide</element></silva-extra:hide_from_tocs> <silva-extra:location><element type="string">http://ws5.ws-eisd.ucl.ac.uk:8090/silva/dave-news/news-articles/0711/07110101</element></silva-extra:location> <silva-extra:publicationtime><element type="date">2007/12/20 16:22:06.612 GMT</element></silva-extra:publicationtime> <silva-extra:keywords><element type="string"></element></silva-extra:keywords> <silva-extra:expirationtime><element type="none">None</element></silva-extra:expirationtime> <silva-extra:subject><element type="string"></element></silva-extra:subject> <silva:maintitle><element type="string">‘Opticon1826’ issue 3 published</element></silva:maintitle> <silva:shorttitle><element type="string"></element></silva:shorttitle> </metadata> <title>‘Opticon1826’ issue 3 published</title> <meta_type>Silva Article Version</meta_type> <sta> <subject>all-news</subject> <subject>announcements</subject> <target_audience>all-users</target_audience> </sta> <content type="xml"> <doc> <list type="none"><li><strong> Link:</strong> <link url="http://www.ucl.ac.uk/opticon1826" target="_self" title="">Opticon1826 </link><br/></li></list><p type="normal">The third and latest issue of UCL student-led journal ‘Opticon1826’ is now online, featuring the winning entries from its essay competition.For this issue, the ‘Opticon1826’ team invited UCL students to submit essays on ‘The Future of…’ </p><p type="normal">PhD student Stephen Fleming (UCL Neuroscience) takes home the £100 first prize for his essay, ‘The Future of the Brain’.</p><p type="normal">Two runners-up receive a £50 prize – ‘The Future of the Past – When Will It Become History?’ by Douglas James (UCL History 2), and ‘The Future of Poetry’ by Thomas Wolf (MSc Urban Development Planning 2007).</p><p type="normal">All three entries are published in the current issue alongside the usual engaging articles and reviews, and a letter to the editor about the challenges facing mothers working in academia.</p><p type="normal">To find out more, use the link at the top of this article.</p><p type="normal"><strong>Related news:</strong><br/></p><p type="normal"><link url="../../../0611/06110101" title="">‘Opticon1826’ issue two published</link></p><p type="normal"><link url="../../../0611/06110101" title="">’Opticon1826’ inaugural issue</link></p> </doc> </content> </silva_newsitem> </silva>