W3C home > Mailing lists > Public > w3c-ietf-xmldsig@w3.org > April to June 2007

C14N: processing instructions (PIs) appearing within the document type declaration (DTD)

From: Nikolay Glushnev <Nikolay.Glushnev@microsoft.com>
Date: Tue, 3 Apr 2007 12:48:56 -0700
To: "w3c-ietf-xmldsig@w3.org" <w3c-ietf-xmldsig@w3.org>
Message-ID: <B98E5C0EDF86514D8F5EEA6201848E0702DC3E45A6@NA-EXMSG-C112.redmond.corp.microsoft.com>

According to XPath Data Model: "There are no Processing Instruction Nodes for processing instructions that are children of a document type declaration information item."
(see "I.5 Processing Instruction Nodes Information Items")

Does this imply that PIs appearing within DTD must NOT be rendered to canonical output?

For example, if input XML file is:
<!DOCTYPE x PUBLIC "myX" "x.dtd" [
 <?t2 t2-body ?>
 <!ENTITY a "aVal"> ]>

Then I can think of two possible outputs:


<?t2 t2-body ?>

Is Output#1 the canonical form of the input XML file?

XML-C14N spec clearly states that comment nodes appearing within DTD must not be rendered to the canonical form. I'd like to confirm that it's also true for PIs.

Nikolay Glushnev

Software Design Engineer
Received on Tuesday, 3 April 2007 21:45:50 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:21:40 UTC