[Expat-bugs] [ expat-Bugs-607702 ] expat v1.9.5+ error on <?pi-target ?>

noreply@sourceforge.net noreply@sourceforge.net
Wed, 11 Sep 2002 07:07:18 -0700


Bugs item #607702, was opened at 2002-09-11 04:25
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=607702&group_id=10127

>Category: None
>Group: None
Status: Open
>Resolution: Rejected
Priority: 5
Submitted By: Shamim Islam (kellin)
Assigned to: Fred L. Drake, Jr. (fdrake)
>Summary: expat v1.9.5+ error on <?pi-target ?>

Initial Comment:
PHP 4.2.2 - direct relay into expat 1.9.5
Apache 1.3.x
Windows NT
Linux-Mandrake

Processing instructions according to the W3C workgroup 
do not form part of the character stream, but are 
supposed to be passed directly to the application. As 
such, they should be allowed to appear anywhere.
xml and Xml as targets are reserved. The targets can 
make use of a Notation in the dtd to clarify the 
application to receive the processing instruction.

Expat as constructed does not allow for processing 
instructions to appear anywhere arbitrarily but requires 
that they appear outside tags. However, the W3C 
mandate clearly indicates that <TAG attribute="<?target 
something?>"/> is a valid construct.

In attempting to make use of this construct, expat 
repeatedly stopped with an invalid response.

Also, it was not clear whether the processing instruction 
was expected to return a value that would instead be 
substituted.

----------------------------------------------------------------------

Comment By: Karl Waclawek (kwaclaw)
Date: 2002-09-11 10:02

Message:
Logged In: YES 
user_id=290026

The start tag is defined as:

[40]    STag    ::=    '<' Name (S Attribute)* S? '>' 
[41]    Attribute    ::=    Name Eq AttValue

and 

AttValue is defined as:

[10]    AttValue    ::=    '"' ([^<&"] | Reference)* '"'
         |  "'" ([^<&'] | Reference)* "'" 
with Reference being a character or entity reference.

This does not allow for processing instructions in the 
attribute value.
The Expat behaviour looks correct to me.







----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=607702&group_id=10127