Jump to content

XML Export of HTML in fields?


Duane

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

Recommended Posts

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.)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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