- From: HILLMAN, Tomos <tomos.hillman@oup.com>
- Date: Tue, 4 May 2010 17:09:59 +0100
- To: "xproc-dev@w3.org" <xproc-dev@w3.org>
Hi List, I'm wondering if anyone has a solution to the following problem: I'm writing a chunking script that takes one large document and filters out particular 'chunks' - say //div1. The document needs to be valid against a declared DTD. The root element of the original document has an xmlns:law attribute declaration for <law:extract> elements; these may also occur multiple times within each 'chunk'. Unfortunately, although the xmlns:law attribute is allowed both on the original root element and the law:extract element, it is not allowed on the filtered elements by the DTD: however, this is where my xproc processor (calabash under oxygen) adds them. How should I go about removing these attributes from the div1 elements and add them to the law:extract elements? Trying to treat the elements as simple attributes gives errors like 'xmlns namespace not declared'... Help! Tom Oxford University Press (UK) Disclaimer This message is confidential. You should not copy it or disclose its contents to anyone. You may use and apply the information for the intended purpose only. OUP does not accept legal responsibility for the contents of this message. Any views or opinions presented are those of the author only and not of OUP. If this email has come to you in error, please delete it, along with any attachments. Please note that OUP may intercept incoming and outgoing email communications.
Received on Tuesday, 4 May 2010 16:10:34 UTC