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

Re: Whitespace preservation

Subject: Re: Whitespace preservation
From: "Fredrik Lindgren" <f.lindgren@xxxxxxxxxx>
Date: Fri, 23 Apr 1999 10:28:08 +0200
idxterm download
The attribute value in your example:
	" ixdterm"
is not a white-space separated list of the names of the element types.

--- snippable formalism reference

If you look at the XSLT DTD you will see that the elements attribute is
declared as NMTOKENS. This means it must match production [8] in the XML
recomendation.


  [7] Nmtoken ::= (NameChar)+
  [8] Nmtokens ::= Nmtoken (S Nmtoken)*

The NameChar production [4] does not include whitespace.

---

Short:
You should not have whitespace before or after the list of names of
element types.

I dont understand what you mean with
	
	 element = "....

Please explain what you are trying to do.

Fredrik Lindgren
Upright Engineering AB 



DPawson@xxxxxxxxxxx wrote:
> 
> In 4.8
> <quote>
> The xsl:preserve-space element causes element types to be added to the set
> of whitespace-preserving element types. The elements attribute gives a
> white-space separated list of the names of the element types. </quote>
> 
> When I tried <xsl:preserve-space elements =" idxterm"/>
> xt complains 'Missing attribute element'.
> 
> If I use element = "....
> 
> I don't seem to get the white space preservation.
> 
> which is right please?
> 
> regards, DaveP
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.