[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Whitespace preservation
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|