I have an existing XSL variant. It refers to a slot. It can display a snippet that is also an XSL variant, but I can’t get it to display a snippet that is written in Velocity. Ought this to work?
The new snippet is written in Velocity partly as it has a hyperlink to another page. With v6.1 I can’t get the sys_casGeneratePubLocation to work for new links (this is with technical support UK-07-07-0084).
I’ve just tried publishing and the link appears on the published page but still doesn’t appear in the preview.
Looking at the XML, each linkurl in the RelatedContent section refers to sys_siteid=0. Taking the linkurl for the velocity template snippet and putting it into the browser gives the error that:
Unexpected exception while assembling one or more items: com.percussion.services.sitemgr.PSSiteManagerException: Site id, 0, does not exit
If I remove the sys_siteid=0 from the URL the template displays correctly.
Why are you previewing in Site 0? Usually, we create special “preview” menus (in Fast Forward, we have “Enterprise Preview” and “Corporate Preview”. The purpose of these previews is to set the site id correctly.
XSL Variants don’t really care about the site that much, but in the Velocity system, the siteid is very important.
When I preview - I right-click on the item (get the preview), click on a link that goes to a different view of the page. This has a URL with “page.html” in it (as in Rx5.7) - I change the “html” to “txt” and can see the XML on screen.
Sounds as though I have to create that special preview menu entry, only I don’t think I have FF installed. I’ll just have to plough through the documentation.
In Rx 6.x, instead of changing “.html” to “.txt”, change the word “render” to “debug”.
This will give you the debug view of the assembler, which lists all parameters and bindings, etc.
It does look like you are missing the site info.
I think it’s a good idea for you to install Fast Forward on your development server and then you can “borrow” some parts and pieces for your production server.
I have a question related to Dave’s answer. In version 6.5.2, when I change the render to debug I get an error “Error loading stylesheet: An XSLT stylesheet load was blocked for security reasons.” (FireFox) when using a legacy xsl variant. Is there another way to view the raw xml that gets passed to the xsl variant?
Here’s an assembly/preview URL from our 5.7 system - in this case, cas_mwSeminarEmail is the name of the application, and page_assembler is the name of the query resource within that application. I changed “page_assembler.html” to “page_assembler.txt” to get the raw XML, instead of the result of the XSL transformation.
We’re on 6.5 and use some XSL Variants, so I thought I would be able to get to XML by using the ‘old-style’ URL, but I’m getting an error “An unexpected exception occurred. The reason was: guid may not be null or empty”.
Could you please repost this with the URLs fully spelled out (turn off the “automatically parse links” checkbox).
Also, I think it would better if you did this in a new thread rather than recycling an old one: it’s clearly a different problem than the one that we were discussing back then.