W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > September 2008

Re: Default values for attributes in XSLT, particularly wrt serialization

From: Jeni Tennison <jeni@jenitennison.com>
Date: Thu, 4 Sep 2008 19:54:09 +0100
Cc: Michael Kay <mike@saxonica.com>, public-xml-processing-model-wg@w3.org
Message-Id: <13995FBA-DF1E-4EA6-B942-B7B1938F00CC@jenitennison.com>
To: Henry S. Thompson <ht@inf.ed.ac.uk>

Henry,

On 4 Sep 2008, at 18:48, Henry S. Thompson wrote:
> How is one supposed to determine what the defaults for attributes in
> the XSLT2 specs is?  For example (one which is at issue for XProc),
> what is the default for the omit-xml-declaration attribute on the
> xsl:output element?  That is, how is a serialiaser supposed to
> implement e.g. section 5.1.5 of the Serialization spec. if no value is
> specified?


In http://www.w3.org/TR/xslt20/#serialization, it specifically says:

   "The value of the omit-xml-declaration attribute provides the value  
of the omit-xml-declaration parameter to the serialization method. The  
default value is no."

The defaults for the other attributes are likewise listed in this  
section.

In some case the default is "not supplied", such as:

   "The value of the doctype-public attribute provides the value of  
the doctype-public parameter to the serialization method. By default,  
the parameter is not supplied."

but in these cases, the XQuery/XSLT 2.0 Serialization spec tells you  
what to do when the parameter isn't supplied (in this case, don't  
supply a public doctype in the DOCTYPE declaration).

In other cases, such as the default value for 'encoding', the default  
is implementation defined.

Are there any other particular cases where you're having trouble  
finding the defaults for attributes?

Jeni
-- 
Jeni Tennison
http://www.jenitennison.com
Received on Thursday, 4 September 2008 18:54:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 4 September 2008 18:54:45 GMT