Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

cdml to xml - images


This topic is 7206 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I thought a good place to start with xml would be to convert on e of the old CDML solutions that came with FMP5. So I took the employee example and converted it. For the most part it works, but none of the icons that sit in a folder call IMAGES load here is the conde

search.xsl?-db=Employees&-lay=Detail&-viewsearch_black.gif

Posted

rivet, I am having a similar problem at the moment. Page-45 of the Custom Web Publishing Guide under "Using Filemaker XSLT stylesheets in a web site or program" #2, states:

"If your XSLT stylesheets reference static files, such as static images or HTML files, place the static files in their original folder hierarchy within the root folder on the web server. Make sure the relative path is preserved.

For example, suppose an XSLT stylesheet references an image file called logo.jpg by using the HTML tag "img src="logo.jpg"". the logo.jpg file must be located in the following location on the web server: <root folder>/fmi/xsl/logo.jpg"

I have not had the time to test this out yet, but will work on it tommorow.

RaodrunnerRay

Posted

I used the cdml converter and got this in xml:

<-img alt="cover" width="134" align="right" hspace="8" vspace="5"><-xsl:attribute name="src"><-xsl:call-template name="get-image"><-xsl:with-param name="fieldname" select="'CoverImage'"/><-xsl:with-param name="recid" select="$default-record/@record-id"/><-/xsl:call-template><-/xsl:attribute><-/img->

(note take out the '-' after each '<')

  • 2 weeks later...
Posted

Can someone explain to me what this means:

For example, suppose an XSLT stylesheet references an image file called logo.jpg by using the HTML tag "img src="logo.jpg"". the logo.jpg file must be located in the following location on the web server: /fmi/xsl/logo.jpg"

what defines the root folder? i've tried putting the image files everywhere with no luck.

  • 3 weeks later...
Posted

For anyone continuing to have a problem with static images not displaying, be sure that the group permissions for the image file match those of the XSL file and that read/write is specified..........

This topic is 7206 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.