You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Scala Language Specification v. 2.9, in section 10.1, 3rd paragraph (towards the end of page 131) reads:
"[...] Scala does not support [...], CDATA sections or processing instructions. [...]"
But the syntax section following this paragraph contains a production XMLContent using non-terminals "CDSect" and "PI", which refer to CDATA sections and processing instructions respectively.
Indeed, both CDATA and Processing Instructions are supported by the 2.9 versions of the language:
Welcome to Scala version 2.9.0.1 (JavaHotSpot(TM) ServerVM, Java1.6.0_24).
Type in expressions to have them evaluated.
Type:help for more information.
scala><?hi world?><t><![CDATA[text]]></t>
res0: scala.xml.NodeBuffer=ArrayBuffer(<?hi world?>, <t>text</t>)
The text was updated successfully, but these errors were encountered:
@jsalvata said (edited on Nov 2, 2011 11:52:56 PM UTC):
Also note that non-terminals "PI" and "CDSect" are not defined anywhere. They should be added to the production declaring elements to be "as in W3C XML".
My comment from 2015 was from when I fixed the related issue #3368 for CDATA support; I think it was supposed to remind me to update the spec, but I forgot. Or possibly, I felt I couldn't top "child support."
The Scala Language Specification v. 2.9, in section 10.1, 3rd paragraph (towards the end of page 131) reads:
"[...] Scala does not support [...], CDATA sections or processing instructions. [...]"
But the syntax section following this paragraph contains a production XMLContent using non-terminals "CDSect" and "PI", which refer to CDATA sections and processing instructions respectively.
Indeed, both CDATA and Processing Instructions are supported by the 2.9 versions of the language:
The text was updated successfully, but these errors were encountered: