Martin Brändle Posted June 28, 2006 Posted June 28, 2006 1) This is indeed a problem of the CDML2XSLT conversion tool: It just inserts the code of the include file for every FMP:Include In your original CDML code (make a backup copy, of course), remove the FMP:Includes. Convert your cdml files then to XSLT, as well as the include files. In the include files, change your expression to a named template and remove the match attribute. E.g. In the calling files, put immediately after and before the first . Within , you can place . You can even pass parameters with xsl:with-param (which must be a child element of xsl:call-template, one xsl:with-param per passed parameter), see e.g. this example <?xml version="1.0" encoding="UTF-8"?> <?xslt-cwp-query params="-grammar=fmresultset"?> . . . som title --Navigation-- . . . The include file would look like <?xml version="1.0" encoding="UTF-8"?> . . . One problem you may face is that if there are errors, there is no hint in the error message in which include file the error occured, and you just get a line number. For debugging, you have then to comment out the xsl:call-template statements (with ) and to turn on one after the other to find where the error happens. It is some manual work, but it is worth the effort and you can build very modular solutions. 2) The images must be placed where your static files reside, i.e. in the root directory or a subdirectory of your web site which are served by the web server software, not into the xslt-template-files folder.
Leslie MacNeill Posted June 29, 2006 Author Posted June 29, 2006 Thanks so much, Martin. I needed to do some minor reconstruction to each page, but the includes are now working. It took me a lot longer to figure out where to put the graphics (and the css file as well) because I don't have any static pages to put them with. I finally got it, though.
Recommended Posts
This topic is 6720 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