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

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 UTC