[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Result still indented despite indent="no"

Subject: Re: Result still indented despite indent="no"
From: Mukul Gandhi <mukul_gandhi@xxxxxxxxx>
Date: Sun, 20 Feb 2005 10:47:49 -0800 (PST)
attribute input type annotations
Hi Colin,
  This Schema fragment says that declarations are
optional (which means that xsl:strip-space and
xsl:preserve-space are also optional). It does not
says anything about rules for stripping white space
text nodes(which is the topic of discussion).

Regards,
Mukul

--- Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx> wrote:

> >>>>> "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
> have:
> 
> <xs:element name="transform">
>   <xs:complexType>
>     <xs:complexContent>
>       <xs:extension
> base="xsl:transform-element-base-type">
>         <xs:sequence>
>           <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:choice>
>         </xs:sequence>
>         <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"/>
>       </xs:extension>
>     </xs:complexContent>
>   </xs:complexType>
> </xs:element>
> 
> 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




		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.