index | search | no replies | posting guidelines | help | login | register |
Index » Products » ASP Report Wizard v2 |
| |||||||
Jul 5 2005, 8:47 AM |
| ||||||
ryan_bro from: East Coast, USA | Where do I define my xml schema? Is this done in one of your files, or would I need to create a xsl file? My problem is when I export to xml the file looks like this: <?xml version="1.0" encoding="ISO-8859-1" ?> - <dataset> - <datacolumns> <datacolumn name="TDS" type="202" size="50" /> <datacolumn name="LastName" type="202" size="50" /> <datacolumn name="FirstName" type="202" size="50" /> <datacolumn name="ProgramEntered" type="202" size="50" /> <datacolumn name="AdmitDate" type="7" size="8" /> <datacolumn name="DischargeDate" type="7" size="8" /> <datacolumn name="RecdClosureSummary" type="202" size="50" /> </datacolumns> Can I change 'datacolumn name' to 'element name'? with no definition of the data field other than 'datacolumn name', which is useless to upload to our other systems. Regards, Ryan | ||||||
Jul 5 2005, 10:07 AM |
| ||||||
ghost from: Washington, DC | Will make sure this functionality is added by the next release due today. e.g. objWiz.XslExportTemplate = "dataexport.xsl" ------------------------- Ghost | ||||||
Jul 5 2005, 12:37 PM |
| ||||||
ryan_bro from: East Coast, USA | After looking at it again, I believe the file type is xsd...thanks. | ||||||
Jul 5 2005, 4:42 PM |
| ||||||
whichman from: Laurel, MD | What you need is a template because the schema has already been pre-defined by your report's dataset. Save the file below as dataexport.xsl and use it as your XslExportTemplate. dataexport.xsl --------------------------------------------------------------------------------------------------- <xsl:stylesheet version = '1.0' xmlns:xsl = 'http://www.w3.org/1999/XSL/Transform'> <xsl:template match = '/'> <xsl:apply-templates /> </xsl:template> <xsl:template match = 'table'> <dataset> <xsl:if test = 'count(/table/theader/tr/th) > 0'> <datacolumns> <xsl:for-each select = 'theader/tr'> <xsl:for-each select = 'th'> <element name = '{.}' type = '{@type}' size = '{@size}' /> </xsl:for-each> </xsl:for-each> </datacolumns> </xsl:if> <datarows> <xsl:for-each select = 'tbody/tr'> <datarow> <xsl:for-each select = 'td'> <xsl:variable name = 'pos' select = 'position()' /> <datacolumn> <xsl:if test = 'count(/table/theader/tr/th) > 0'> <xsl:attribute name = 'name'> <xsl:value-of select = 'ancestor::table/theader/tr/th[$pos]/text()' /> </xsl:attribute> </xsl:if> <xsl:value-of select = '.' /> </datacolumn> </xsl:for-each> </datarow> </xsl:for-each> </datarows> </dataset> </xsl:template> </xsl:stylesheet> ------------------------- Master of the Game | ||||||
Jul 20 2005, 2:36 PM |
| ||||||
ryan_bro from: East Coast, USA | I am getting the following error after installing ("repairing") the latest rev. Error Type: Microsoft VBScript runtime (0x800A01B6) Object doesn't support this property or method: 'XslExportTemplate' I created the template as you mentioned in an earlier post, but I have the above error and the page will not display. Thansk, Ryan | ||||||
Jul 21 2005, 6:08 AM |
| ||||||
ghost from: Washington, DC | I am getting the following error after installing ("repairing") the latest rev. Do not repair - uninstall the previous version and install the new version. I'm not sure but I think this is because repairing only fixes only what was on the original dll and will not add any new features. ------------------------- Ghost | ||||||
Jul 21 2005, 12:36 PM |
| ||||||
ryan_bro from: East Coast, USA | the uninstall/reinstall did it... Thanks, Ryan | ||||||
Pages: (1) [1] |