Jump to content
Server Maintenance This Week. ×

How do I use xsl


Zoracle

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

Recommended Posts

  • Newbies

I'm having problems formatting my database using xsl. Even when I use css, it doesn't do it correctly. But when I use xsl, it doesn't work at all. I get the message:

"Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. "

I'm using the url with the tags in it like this: "-styletype=text/xsl&-stylehref=http://192.168.254.205/xsl1.xsl"

What could be wrong with how I'm doing this? Any ideas?

Thanks,

Zach

Link to comment
Share on other sites

Hi,

You can't use XSL with the web companion (vs CSS you can). The XSL transformation will only work (for the moment) when exporting / importing to XML data.

Sorry, I was also a requestor for this option ... better luck with FM 6.5

Link to comment
Share on other sites

  • 3 weeks later...
  • Newbies

What do you mean by "exporting and importing XML data"? That's what I'm trying to do. Am I going about it the wrong way? Basically, I want to be able to view my database online using a script that I wrote. How can I do this?

Thanks,

Zach

Link to comment
Share on other sites

  • 4 weeks later...

"viewing database _online" and import/export of XML are two very different things. There are two APIs with FileMaker Pro 6.

However, you can use XSL stylesheets with both of these methods. For Web publishing the stylesheet should be in the "Web" folder for Web Companion to find it. This is -stylehref="name.xsl"&-styletype="text/xsl". If you are importing or exporting and using XSL, the document is specified in the dialog box.

Keep in mind that not all browsers support XSL correctly (web publishing). However the Xalan processor with FMP6 does process the document correct and transforms it however you specify Export. The resulting document is saved to the location of your choice, just like any export. This document is not web-published, but may be uploaded to a location. You use the same method to transform XML into the grammar for Import into FileMaker. Import is also not web publishing.

HTH

Link to comment
Share on other sites

This topic is 7926 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.