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]



Reply via email to