Subject:XSLT Does Not Retrieve Enough Records Author:Minollo I. Date:03 Jan 2007 07:02 PM
Can you also attach (or email stylus-field-report@progress.com) the XML you are using as input? And also point us to a record that you can see is not transformed the way you would expect?
Subject:XSLT Does Not Retrieve Enough Records Author:Minollo I. Date:03 Jan 2007 08:23 PM
You are not looping on the repeating element in the input document (qryWMGforXMLExport); you need to add a <xsl:for-each select="dataroot/qryWMGforXMLExport"> at some level to make sure that everything inside will be repeated for all occurrences of that element; of course, once in the context of the xsl:for-each, the XPath expressions will be in the context of that specific element; so, for example, you will do <xsl:value-of select="MessageThreadID"/>, not <xsl:value-of select="dataroot/qryWMGforXMLExport/MessageThreadID"/>
Subject:XSLT Does Not Retrieve Enough Records Author:Minollo I. Date:03 Jan 2007 11:24 PM
Well, you put an element our of xsl:template... which any processor less "kind" than the built-in Stylus Studio one would have refused as an error; I put that element back to be a child of xsl:template, and I added a <Record> one to show you better the repetition of the generated structure.
Subject:XSLT Does Not Retrieve Enough Records Author:Ellen Christon Date:03 Jan 2007 11:28 PM
Okay, one last question, which may be out of your scope. Please let me know if it is.
I need to add a counter as shown below and I know somehow you can do it with an xls:number function, but, as you might imagine, I can't get this to work! The count should start with 1 and increase by 1, by each grid listed. For example,