Today is my first exposure to the Xweb S/W. It diffidently fits a need that I have so I'm very interested in it.
FYI I'm using the RC2 version and I believe that all of what I describe below is with the patch from the 14th applied. (I will go back and test with the patch removed later this evening.)
I've started with the tutorial to get my feet wet, after reading all the online documentation. What I am seeing is what Michael Weers saw as well. The index.html file was generated without any tags in it except the !DOCTYPE tag, while the cv.html and the link.html did have the proper tags in them.
What I noticed was that the layout.xsl file that was part of the source tree for the tutorial was not the same as the one in the documentation for the tutorial. The source tree's version has this line and associated tags throughout the xsl file:
Notice that that latter references formatting objects while the former references xhtml.
If I run the tutorial though 'wp' with the former the index.html file is as Michael describes it. When I run the tutorial through 'wp' with the latter index.html is fine but cv.html and list.html have no HTML formatting in them.
The second problem I'm seeing is that in both case the <section>...</section> code that is shown to be generated in the "Adding the Navigation" section of the tutorial document, is not being created properly. Every string that is supposed to be 'filled in' within that section is generated as the null string (i.e., ""). When I used the FO version of the XSL template the index.html file did have this section in it, with all null strings (naturally the other two files did not it since there was no <HTML> in them.) When I used the XHTML stylesheet, the index.html did not have any navigation code in it, though the index.xml file did - with nulls of course. But link.html and cv.html did have navigation in them - also with nulls.
I hope this gives you enough information to go on. Let me know if you need any other data points.
Thanks and I look forward to using this tool.
-Fred-
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1) you should really start with the manual examples, not with the tutorial. The tutorial is currently not maintained properly and is propably far easier to understand once you have some experience with the generic stylesheet. I know "tutorial" sounds like a good place to start, I'll try to include the tutorial information in the manual in the next version.
2) I could run the tutorial in a clean XWeb 1.0RC2 installation without problems, the patch will break it since it removes the XHTML namespace from the document element, which the stylesheet expects. There is a reason I call the patch a "pretty nasty workaround" ;-) Either don't use the patch, or remove all "xhtml:" references from the stylesheet
3) the fo namespace sometimes appears in stylesheets I generated because my editor adds this per default. This is at the moment always a slip -- we don't use FO yet. The xhtml namespace was added on purpose since the stylesheet uses it.
4) I don't understand your description with the navigation issues. Chances are that they are related -- as I've said: it works with the plain RC2 version and if the namespaces are messed up the stylesheet will miss the navigation information, too.
HTH,
Peter
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Peter,
Today is my first exposure to the Xweb S/W. It diffidently fits a need that I have so I'm very interested in it.
FYI I'm using the RC2 version and I believe that all of what I describe below is with the patch from the 14th applied. (I will go back and test with the patch removed later this evening.)
I've started with the tutorial to get my feet wet, after reading all the online documentation. What I am seeing is what Michael Weers saw as well. The index.html file was generated without any tags in it except the !DOCTYPE tag, while the cv.html and the link.html did have the proper tags in them.
What I noticed was that the layout.xsl file that was part of the source tree for the tutorial was not the same as the one in the documentation for the tutorial. The source tree's version has this line and associated tags throughout the xsl file:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml">
while the documentation has this line and the associated tags:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
Notice that that latter references formatting objects while the former references xhtml.
If I run the tutorial though 'wp' with the former the index.html file is as Michael describes it. When I run the tutorial through 'wp' with the latter index.html is fine but cv.html and list.html have no HTML formatting in them.
The second problem I'm seeing is that in both case the <section>...</section> code that is shown to be generated in the "Adding the Navigation" section of the tutorial document, is not being created properly. Every string that is supposed to be 'filled in' within that section is generated as the null string (i.e., ""). When I used the FO version of the XSL template the index.html file did have this section in it, with all null strings (naturally the other two files did not it since there was no <HTML> in them.) When I used the XHTML stylesheet, the index.html did not have any navigation code in it, though the index.xml file did - with nulls of course. But link.html and cv.html did have navigation in them - also with nulls.
I hope this gives you enough information to go on. Let me know if you need any other data points.
Thanks and I look forward to using this tool.
-Fred-
Hello Fred,
Here are some answers/hints:
1) you should really start with the manual examples, not with the tutorial. The tutorial is currently not maintained properly and is propably far easier to understand once you have some experience with the generic stylesheet. I know "tutorial" sounds like a good place to start, I'll try to include the tutorial information in the manual in the next version.
2) I could run the tutorial in a clean XWeb 1.0RC2 installation without problems, the patch will break it since it removes the XHTML namespace from the document element, which the stylesheet expects. There is a reason I call the patch a "pretty nasty workaround" ;-) Either don't use the patch, or remove all "xhtml:" references from the stylesheet
3) the fo namespace sometimes appears in stylesheets I generated because my editor adds this per default. This is at the moment always a slip -- we don't use FO yet. The xhtml namespace was added on purpose since the stylesheet uses it.
4) I don't understand your description with the navigation issues. Chances are that they are related -- as I've said: it works with the plain RC2 version and if the namespaces are messed up the stylesheet will miss the navigation information, too.
HTH,
Peter