When opening XHTML page, getting error message "Attribute ....space not declared for element 'pre' "

Hi all,
We are trying to use XHTML to author some of our documentation.  The plan is to use FrameMaker to convert the docs to PDF format.
The input file contains the following offending line:
<pre xml:space="preserve">
This should be allowed according to the www.w3.org/1998/xhtml spec.
The actual FM log message is:
Message: Attribute '{http://www.w3.org/XML/1998/namespace}space' is not declared for element 'pre'
Any hints?  I am using Frame Maker 9, by the way.
Thanks,
Frances

In case anyone is interested the base solution given by dvohra09 can be expanded to solve the problems.
(1) It appears the parser raises errors against any unknown attributes, including xmlns:xxx="...". Solution is either to declare them in the dtd element you would like them to appear in (as in answer from dvohra09 ).
(2) You have to explicitly force the tags in the DTD into the correct namespace using prefixs to ensure the correct ones are picked up , e.g.:
   <!ELEMENT nstag:mytag (mysubtag+)>
   <!ATTLIST nstag:mytag   xmlns:nstag CDATA #FIXED  "http://www.someOtherURI.com/xxx">
you then have to refer to the tag as <nstag:mytag>.
This doesn't appear to be how the XML/namespace specs (or the slideshow example) say it should be. They imply (1) should silently declare the new namespace prefix, and (2) should work without prefixes because the DTD filename is used as an explicit namespace.

Similar Messages

Maybe you are looking for