halbj Posted April 22, 2005 Posted April 22, 2005 I have a simple XSLT results page that displays a portal with one field per row. The rows are separated by a break tag. The problem I am having is that the portal rows are duplicated - that is I get my expected results followed by the same number of break tags. I originally had my portal rows displaying as table rows, but simplified it to try and resolve my problem. I have attached my XSL file (Prec_1.xs1) result 1 Break tag result 2 Break tag result 3 Break tag Break tag Break tag Break tag Any ideas why I have the additional portal rows?? prec_1.xsl.zip
halbj Posted April 22, 2005 Author Posted April 22, 2005 I have also added the source of the html converted result if this may help..... Source.zip
Martin Brändle Posted April 22, 2005 Posted April 22, 2005 Your XSLT file is not the problem (although there are a little lot of tab characters and empty lines in it, but that should not be problem). There could be two reasons: 1) You have additional empty rows in the portal of the record in question. 2) It's the layout with the portal. Most probably it had been built like this: First fields of the main table were added, then the portal with some fields. Then again fields of the main table were added. Then again fields were added to the portal. As a consequence, the XML result set tree - e.g. the relatedset part - produced by the Web Publishing Engine is split into two chunks. You can check the XML result set tree by adding <textarea cols="80" rows="10"><xsl:copy-of select="."/></textarea> directly after <xsl:template ...> and see if this is the case. The best is to rebuild the layout by placing first all main table fields, then the portal with all its fields at once. See also this thread. In my opinion, it's a bug, because the WPE could be programmed so that it groups the fields belonging to a portal together.
halbj Posted April 25, 2005 Author Posted April 25, 2005 Martin, you are a jet! I had already checked that there wasn't a heap of empty rows (related records) in the portal, so I 'rebuilt' the layout and everything is now sweet! I was having other weird problems that have now been resolved also - that is a bug! I should have mentioned that this is a database that I had converted to 7 and then converted the CDML files with the utility. I might go through and rebuild all web layouts. Thanks for your help Cheers Hal.
Newbies Pjotr Posted October 17, 2005 Newbies Posted October 17, 2005 (edited) I read your response to the portal solution that was given you by martin Brandle. Right now I am trying what Martin told you but somehow I miss something. Could you publish your new build layout where the portal does work? I also converted my CDML pages. Thanks in advance! Ronald Post PS Ok found it already. By using the I found out that it had to be the FM layout. So simple if you know the answer. So if you want to use a portal in your webpage, the portal should be underneath all the other fields in the layout of FM. Only then your webpage doesn't give weird results. Edited October 19, 2005 by Guest
Recommended Posts
This topic is 6975 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now