Subject: Re: Whitespace preservation From: "Fredrik Lindgren" <f.lindgren@xxxxxxxxxx> Date: Fri, 23 Apr 1999 10:28:08 +0200 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Whitespace preservation, DPawson | Thread | Training, Madelon Brennan |
Whitespace preservation, DPawson | Date | Re: Formatting Objects considered h, Guy_Murphy |
Month |