Tim,
XSLT does not preserve CDATA nodes but treats them into text nodes. It
is still possible to treat script elements according to their type
attributes. I can modified the XSLT stylesheet accordingly: for
"text/javascript", the script value can be encapsulated with "/*
<![CDATA[ */" and "/* ]]> */", and, for "text/turtle", with "#
<![CDATA[" and "# ]]>". What do you think?
For submission, adding support for @cdata-section-elements is not
difficult for non-IE browsers because serialization is performed with
Javascript instructions. For IE, because serialization is still based on
an XSLT transformation, the stylesheet source would have to be adapted
according to @cdata-section-elements value. Do you already need this?
--Alain
Le 05/07/2015 04:10, Tim Thompson a écrit :
Alain,
I am trying to load a subform that contains a <script
type="text/turtle"> tag with RDF data serialized as Turtle.
This data is enclosed in a CDATA section (per
http://www.w3.org/TR/turtle/#h3_xhtml). However, when I load the
subform (as XHTML), the CDATA is ignored and all <> characters are
escaped, which causes the Turtle parser I am using to break. Shouldn't
CDATA contents be ignored when a subform is loaded?
As a related question, does XSLTForms support the
@cdata-section-elements attribute on <xf:submission>? I see some
reference to it in the code, but wasn't sure whether it had been fully
implemented. This could be very useful for dealing with non-XML
formats in hybrid applications.
Many thanks,
Tim
--
Tim A. Thompson
Metadata Librarian (Spanish/Portuguese Specialty)
Princeton University Library
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support