RE: [xsl] standalone="no"

Subject: RE: [xsl] standalone="no"
From: "M. David Peterson" <m.david@xxxxxxxxxx>
Date: Wed, 12 May 2004 08:59:43 -0600
Hi Mike, 

Let me first commend you on posting a perfect example of exactly what
every posted question should look like.  Clear, concise, presents the
problem in as few sentences as possible, prints only the code pertinent
to the problem at hand, and shows examples of research already done that
still leaves a few questions unanswered.  If I had a gold star for your
forehead it would now be in your possession.  I'll work on that.  In the
mean time...

According to the current recommended XML specification:

http://www.w3.org/TR/2004/REC-xml-20040204/#sec-rmd

it states:

"If there are no external markup declarations, the standalone document
declaration has no meaning. If there are external markup declarations
but there is no standalone document declaration, the value "no" is
assumed."

Which I think pretty clearly states that if it is not included then it
is assumed to be no.  With this in mind if a processor shut downs the
processing of an XML document it's not because standalone was set to no.

It's possible for the parser to throw exceptions if it comes across
entity declarations that are invalid in syntax or value but this
wouldn't have anything to do with the value of the standalone attribute
and as such I wouldn't pay attention much anymore to what that
particular attendee has to say at the next meeting ;) 

Hope this helps clarify!

Best regards,

<M:D/>




> -----Original Message-----
> From: Mike Ferrando [mailto:mikeferrando@xxxxxxxxx]
> Sent: Wednesday, May 12, 2004 8:34 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] standalone="no"
> 
> Friends,
> I have created a stylesheet to convert EAD 1.0 into EAD 2002. The
> first step of the package is to use James Clark's SX converting the
> SGML into XML.
> 
> The stylesheet that converts EAD 1.0 into EAD 2002 gives this
> processing instruction in the output EAD 2002 document.
> 
> <?xml version="1.0" encoding="utf-8" standalone="no"?>
> 
> Recently, I went to an XML users group meeting and someone said that
> the 'standalone' instruction can shut down the processing of the XML
> document in some processors.
> 
> Should I include 'standalone' in the processing statement? I could
> generate the output without it, but I am hesitant to just "leave it
> blank". Michael Kay's book (1st edition) indicates that it should be
> included in all well formed XML documents.
> 
> Mike Ferrando
> Washington, DC
> 
> 
> 
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Movies - Buy advance tickets for 'Shrek 2'
> http://movies.yahoo.com/showtimes/movie?mid=1808405861

Current Thread