Insert PHP in HTML-Form via XSLT
Oxygen general issues.
-
- Posts: 32
- Joined: Wed Sep 09, 2020 3:17 pm
Re: Insert PHP in HTML-Form via XSLT
Post by florin_nica »
Hello,
One solution to ensure that the closing parenthesis in the PHP statement is not converted to ">" could be to use a CDATA (Character Data) section in your XSLT template. By wrapping the PHP statement with <![CDATA[ ... ]]>, you prevent the XML parser from interpreting the content, and it will be output as-is in the resulting HTML.
Another solution could be to perform a string replacement on the result of the PHP statement, something like:
Hope this helps.
Regards,
Florin
One solution to ensure that the closing parenthesis in the PHP statement is not converted to ">" could be to use a CDATA (Character Data) section in your XSLT template. By wrapping the PHP statement with <![CDATA[ ... ]]>, you prevent the XML parser from interpreting the content, and it will be output as-is in the resulting HTML.
Another solution could be to perform a string replacement on the result of the PHP statement, something like:
Code: Select all
<xsl:variable name="php01_replaced" select="replace($php01, '>', '>')" />
Regards,
Florin
-
- Posts: 32
- Joined: Wed Sep 09, 2020 3:17 pm
Re: Insert PHP in HTML-Form via XSLT
Post by florin_nica »
Hello,
I am not sure why this doesn't work. At the moment, no other idea comes to my mind, but you may want to take a look at this topic, which is related to PHP statements used in XSLT: common-problems/topic6588.html
Regards,
Florin
I am not sure why this doesn't work. At the moment, no other idea comes to my mind, but you may want to take a look at this topic, which is related to PHP statements used in XSLT: common-problems/topic6588.html
Regards,
Florin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service