Subject:Formatting XSL with entities Author:Vinayak Sapre Date:27 Feb 2003 03:00 AM
Please see attached xsl. I opened this in SS and used indent XML tags feature. I observed two things
1. was converted to which makes it unreadable.
2. p tag was wrapped on first line. Instead of two line inside template I get just one long line. The XSL I am using on project, has about 50 lines, which gets wrapped.
If I remove the entity reference, formatting looks great.
Is there way I can control this.
N.B. I had to define entity in inline dtd as I was getting undefined entity error.
Subject:Re: Formatting XSL with entities Author:(Deleted User) Date:27 Feb 2003 09:03 AM
Hi Vinayak,
At 03.18 27/02/2003 -0500, you wrote:
>From: "Vinayak Sapre"
>
>Please see attached xsl. I opened this in SS and used indent XML tags
>feature. I observed two things
>1. was converted to which makes it unreadable.
We chose to always output the equivalent character entity to avoid placing
an entity that could not be defined in the XSL/XML file, making it invalid;
we have now changed the algorithm so that the nbsp entity will be generated
if it can be found in the DTD.
>2. p tag was wrapped on first line. Instead of two line inside template I
>get just one long line. The XSL I am using on project, has about 50 lines,
>which gets wrapped.
The content of xsl:template is placed on a long line because it has
non-whitespace characters between the child tags (the nbsp entity); we have
now placed extra logic in the indenter to interpret the newline before the
"p" tag as a hint that the user accepts indentation from that point on.