Re: [basex-talk] Error using transform method (XSLT Module)
Hi, I've never seen a stylesheet without the stylesheet root element and at least one template inside. Should be something like: xsl:stylesheet version='2.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xsl:template match=/ html xmlns='http://www.w3.org/1999/xhtml' body h1Books/h1 ul xsl:for-each select='books/book' ... Regards, Max 2012/5/14 Anand Chiney anandc@gmail.com Dear Team, http://docs.basex.org/wiki/XSLT_Module Out of the 3 Example, 1 and 3 are working... at my end. The error with the second one is as - Error: [FODC0002] Could not compile stylesheet Have a nice day Regs Anand C On Fri, May 11, 2012 at 4:44 PM, Anand Chiney anandc@gmail.com wrote: Hi there, I am using BaseX 7.2 Beta. I am trying to extract certain XML Documents from the DB and then applying the XSLT to convert these docs to HTML. Following is the query, which I am typing in Editor - let $in := /Chapters let $style := doc('C:\Program Files\BaseX\data\chapter.xslt') return Chapters{( xslt:transform($in, $style), xslt:transform($in, $style) )}/Chapters I am getting error message - Error: [FODC0002] (Line 34): /head found, /meta expected. First I thought that, META tag might be compulsory. So I added the same to the XSLT file. Still error What does it means? Am I doing anything wrong? The XSLT works correctly when used individually with Java code. Ready to sent the XML and XSLT File -- Regards Have a nice day :) Anand C -- Regards Have a nice day :) Anand Chiney ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Re: [basex-talk] custom separator in CSV mode
Hi Christian, Unicode codepoints would be fine, Sometimes data providers adopt very strange data formats ... Regards -Original Message- From: Christian Grün [mailto:christian.gr...@gmail.com] Sent: dimanche 13 mai 2012 17:55 To: Fabrice Etanchaud Cc: basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] custom separator in CSV mode Hi Fabrice, first of all, thank you for your fantastic job, BaseX changed my life ! Wow, that sounds like an important event ;) Do you plan to let users set a custom separator when importing in CSV mode ? (the comma, semicolon, or tab are too restrictive) Which separators characters would you like to have added? The reason for having defined fixed characters is that they are easier to specify via commands, but we could e.g. additionally allow numbers as input, which would then be interpreted as Unicode codepoints (32: space, etc.). Christian ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Re: [basex-talk] Error using transform method (XSLT Module)
Dear Anand, thanks all, I have updated the buggy example (it was successfully parsed by Saxon, which is probably the reason why it managed to slip into the documentation): http://docs.basex.org/wiki/XSLT_Module#Examples Christian ___ On Mon, May 14, 2012 at 9:30 AM, Maximilian Gärber mgaer...@arcor.de wrote: Hi, I've never seen a stylesheet without the stylesheet root element and at least one template inside. Should be something like: xsl:stylesheet version='2.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xsl:template match=/ html xmlns='http://www.w3.org/1999/xhtml' body h1Books/h1 ul xsl:for-each select='books/book' ... Regards, Max 2012/5/14 Anand Chiney anandc@gmail.com Dear Team, http://docs.basex.org/wiki/XSLT_Module Out of the 3 Example, 1 and 3 are working... at my end. The error with the second one is as - Error: [FODC0002] Could not compile stylesheet Have a nice day Regs Anand C On Fri, May 11, 2012 at 4:44 PM, Anand Chiney anandc@gmail.com wrote: Hi there, I am using BaseX 7.2 Beta. I am trying to extract certain XML Documents from the DB and then applying the XSLT to convert these docs to HTML. Following is the query, which I am typing in Editor - let $in := /Chapters let $style := doc('C:\Program Files\BaseX\data\chapter.xslt') return Chapters{( xslt:transform($in, $style), xslt:transform($in, $style) )}/Chapters I am getting error message - Error: [FODC0002] (Line 34): /head found, /meta expected. First I thought that, META tag might be compulsory. So I added the same to the XSLT file. Still error What does it means? Am I doing anything wrong? The XSLT works correctly when used individually with Java code. Ready to sent the XML and XSLT File -- Regards Have a nice day :) Anand C -- Regards Have a nice day :) Anand Chiney ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk