OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook] Error processing FO output from docbook-xsl


On Wed, Oct 08, 2003 at 06:20:13PM +0200, Tobias Reif wrote:
> Jeff Beal wrote:
> >>and
> >>
> >>http://www.w3.org/TR/REC-xml#sec-pi
> >>"PITarget ::=  Name - (('X' | 'x') ('M' | 'm') ('L' | 'l'))"
> >>
> >>Other than that the document seems to be valid DBX 4.2.
> >>
> >>Did XML Spy insert this PI?
> > 
> > I don't believe that section prevents PI targets from _starting_ with 'xml',
> 
> I had only glanced over this portion of the spec and somehow thought 
> that PI target names had the same constraint as namespace prefixes:


[Definition: A Name is a token beginning with a letter or one of
a few punctuation characters, and continuing with letters, digits,
hyphens, underscores, colons, or full stops, together known as name
characters.] Names beginning with the string "xml", or any string
which would match (('X'|'x') ('M'|'m') ('L'|'l')), are reserved for
standardization in this or future versions of this specification.

  I think it makes 100% clear that a good parser should warn its
users about using a restricted value.
  
> But then xmllint is wrong when it says:
> 
> -:2: warning: xmlParsePITarget: invalid name prefix 'xml'
> <?xmlspysps C:\Program
>             ^

Section 2.6 on Processing Instructions:

http://www.w3.org/TR/REC-xml#NT-PITarget

[16]    PI    ::=    '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>'
[17]    PITarget    ::=    Name - (('X' | 'x') ('M' | 'm') ('L' | 'l'))


  A PI starts with a PITarget. A PITarget is a Name with the additional
restriction that it cannot be "XML" using either upper or lower case.
xmlspysps in that context is a Name, it's not in the restriction specific
to PITarget but it is subect to the grammar and normative text applying to
Name value.

> Daniel, if you hear me, should I file a bug report?

  No it's not a bug.

> > There's nothing wrong with
> > XML Spy using 'xmlspy' as its standard processing instruction target.

  Sorry I disagree with that, the spec is very clear about Name
values starting with "xml" being reserved for the evolution of the XML
spec. I'm very sorry if the people who implemented XML Spy just can't
seems to be able to read the spec. This has been reported to them already,
they are in denial but that doesn't change the wording of the spec.
I think it is important I maintain that warning, W3C used and intent
to continue using the fact that such names are reserved for the evolution
of XML. And if the XML Spy people just can't fix their software, well
this seems to imply that they don't care much about what the spec says...

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]