Actually, I can. I just wonder why it is needed in th XML file rather than specify it in the DTD and forget about it. Quite cleaner I think.
However, I have been investigating further and as far as I understood there is no way specifying a CDATA section for an XML element (i.e. unparsed element), despite it is possible for a SGML document. At least considering DTDs.
I have still to check using schemas.
Thanks,
Adolfo.
From: "David Graham" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: posible remove ![CDATA[]] from validator-rules? Date: Wed, 26 Feb 2003 14:08:48 -0700
Why can't you use the CDATA section?
David
From: "Adolfo Miguelez" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: posible remove ![CDATA[]] from validator-rules? Date: Wed, 26 Feb 2003 20:13:49 +0000
Hi All,
I am trying to implement customized validator. In validator-rules.xml XML file, we need to define the validator and its assigned javascript validation code for the JSP.
The <javascript> tag is defined as a PCDATA element in the DTD:
<!ELEMENT javascript (#PCDATA)>
so we need enclose the function in a CDATASection as ![CDATA[...]]to prevent parser to parse the javascript function:
<javascript><![CDATA[....javascript function...]]></javascript>
My question is: could not the DATASection be specified in the DTD so it would not need to specify it in the XML. And validating with a schema?
TIA,
Adolfo
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]