Re: [xsl] Result still indented despite indent="no"

Subject: Re: [xsl] Result still indented despite indent="no"
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 20 Feb 2005 18:38:34 +0000
>>>>> "Mukul" == Mukul Gandhi <mukul_gandhi@xxxxxxxxx> writes:

    Mukul> It gives an impression, xsl:strip-space and
    Mukul> xsl:preserve-space declarations are required..

I don't get that impression.

But for total non-ambiguity, look at the XML Schema for stylesheets. We

<xs:element name="transform">
      <xs:extension base="xsl:transform-element-base-type">
          <xs:element ref="xsl:import" minOccurs="0" maxOccurs="unbounded"/>
          <xs:choice minOccurs="0" maxOccurs="unbounded">
            <xs:element ref="xsl:declaration"/>
            <xs:element ref="xsl:variable"/>
            <xs:element ref="xsl:param"/>              
            <xs:any namespace="##other" processContents="lax"/> <!-- weaker than XSLT 1.0 -->
        <xs:attribute name="id" type="xs:ID"/>
        <xs:attribute name="default-validation" type="xsl:validation-strip-or-preserve" default="strip"/>
        <xs:attribute name="input-type-annotations" type="xsl:input-type-annotations-type" default="unspecified"/>

Note the minOccurs="0" on the choice which allows xsl:declaration -
i.e. NO declarations are compulsory. And as xsl:strip-space and
xsl:preserve-space are declarations, they are not required.

Colin Paul Adams
Preston Lancashire

Current Thread