Hi Luca, * Luca Toscano wrote:
> Hello! > > I have added some <note>s to the AsyncRequestWorkerFactor directive's > usage section of mod_event but I am getting this error while running the > build validate.xml step: > > ./build.sh validate-xml > Buildfile: build.xml > > validate-xml: > [xmlvalidate] $HOME/httpd-trunk/docs/manual/mod/event.xml:336:9: The > content of element type "usage" must match > "(p|example|note|table|ul|ol|dl|pre|highlight|blockquote)*". > > BUILD FAILED > $HOME/httpd-trunk/docs/manual/style/lang-targets.xml:294: > $HOME/httpd-trunk/docs/manual/mod/event.xml is not a valid XML document. > > I've attached the patch if anybody wants to take a look. Even if I've > read https://httpd.apache.org/docs-project/docsformat.html I am still a > bit confused about how to debug/fix these kind of things. I haven't found > a good way to check where these rules are defined in the xml files of the > style directory, can anybody give me an hint? The docs have DTD files in the style directory. In this case that would be modulesynopsis.dtd The content restriction basically means, only block elements are allowed inside the usage element (any of those listed and unlimited times). Direct inline content, such as bare text is forbidden (not sure exactly, but this looks like bare text to me: "Math is always useful but sometimes confusing, some examples will surely help to clarify doubts that might arise:") Additional note: You might want to use the highlight element instead of pre. Cheers, nd -- >I have tried using ErrorDocument 401, but doesn't work. ^^^^^^^^^^^^^ Oh dear. What does it do - lounge around on the couch all day drinking beer and watching TV? -- "Kash" und Alan J. Flavell in ciwsu --------------------------------------------------------------------- To unsubscribe, e-mail: docs-unsubscr...@httpd.apache.org For additional commands, e-mail: docs-h...@httpd.apache.org