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

XML Export of HTML in fields?


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

Recommended Posts

Posted

I would like to enter some HTML into a field in my database. Then export using XML/XSLT to produce a web page. Unfortunately, the export escapes all the HTML tags.

Is there any way to turn this off during the XML export so that I get the actual characters?

Any suggestions on alternative ways of doing this? (i.e. Inventing a new syntax and transforming that syntax. Oh fun.)

Posted

Thank you for the suggestions.

> You could have the XSLT generate the HTML, rather than store it.

That would be extremally difficult. Every record is different. I am preparing a FAQ database. Custom formatting of the fields is necesary to presnet the data properly.

> Using

> disable-output-escaping="yes"

>the HTML tags will not be escaped.

This only works in the XSLT, unfortunatelly FileMaker has already escaped the tags before I see them. That's what I was asking about turningit off in FileMaker.

Thanks for the ideas.

Still looking for suggestions.

Posted

This only works in the XSLT, unfortunatelly FileMaker has already escaped the tags before I see them. That's what I was asking about turningit off in FileMaker.

In attachment, I put 3 files :

1. a FMPRO 6 file "forfilemakerforum.fp5" with one single record and one field "html"

2. a xsl file "fmproxmlexport.xsl"

3. a html file "forfilemakerforum.html" whose the result of the transformation of the XML export.

In the (my) result, the html tags are NOT escaped !

forfilemakerforum.zip

Posted

Thank you Jean-Marie!! I understand the process better now.

FileMaker is not escaping anything. The "default" xslt process is doing the escaping because that's what it does if you tell it to do nothing.

I adapted your xslt file to the DSO output format and it worked fine.

Thank you, this will save me a lot of headache.

Posted

... but still works. It's a lot more useful than fmpxml, and since it is easy to convert between the two syntaxes, don't worry about future compatability. Just run it thru fmpxml2dso.xsl before processing.

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