[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [wtp-dev] XSL formatter stops formatting
- From: "Campbell, Lance" <lance@xxxxxxxxxxxx>
- Date: Fri, 30 Jan 2009 11:47:18 -0600
- Delivered-to: firstname.lastname@example.org
- Thread-index: AcmCLH5Wgq7kXqI7RH6sNwb9RlQQJAA1WQlQ
- Thread-topic: [wtp-dev] XSL formatter stops formatting
Actually this will not work. Why? HTML ignores multiple spaces.
Example: If you do " " you will only get one space. When you use
it actually puts in a . There is a big difference.
I will keep an eye out in hopes that you will decide to make this a
From: David Carver [mailto:dcarver@xxxxxxxxxxxxxxxx]
Sent: Thursday, January 29, 2009 10:12 AM
To: General discussion of project-wide or architectural issues.;
Subject: Re: [wtp-dev] XSL formatter stops formatting
Campbell, Lance wrote:
> In an XSL when you use   it puts the value of "nbrsp;" in the
generated HTML. This is important because it preserves the spaces.
When I use the command <xsl:text> it does not preserve the spaces. Is
there some way to get around this issue as an XSL editor?
xsl:text be recognized by the formatter as a Preserve space element
already. However, you can specifically tell it by adding the
xml:space="preserve" attribute to the xsl:text element.
Again, I think we have to fix the formatter issue bug that was described
earlier in the XML Formatter to fix this. If you are using another
formatter and doing reformatting with a stylesheet, you can and probably
should add xml:space="preserve" to the text elements. This article
should help a bit:
> -----Original Message-----
> From: wtp-dev-bounces@xxxxxxxxxxx [mailto:wtp-dev-bounces@xxxxxxxxxxx]
On Behalf Of frode@xxxxxxxxx
> Sent: Wednesday, January 28, 2009 3:43 PM
> To: General discussion of project-wide or architectural issues.
> Subject: Re: [wtp-dev] XSL formatter stops formatting
> "  is not a legal character to have inside any XML, so that the
formatter stops formatting when hitting this charachter is no surprise.
Any other well-behaved xml-parser will also stop parsing the XML when
> Just try to open the file in any browser, and it will report illegal
character... IE will actually render the most of it, but will have
'error'-comment down to the left. Firefox will not display it at all.
> If You should try to create a DOM-tree with Jdom, and try to insert
this character inside any element it would throw an exception at You.
> In short; You will have to avoid this charcter inside any
> "Campbell, Lance"
> Sent by:
> 28.01.2009 18:07
> [wtp-dev] XSL
formatter stops formatting
> Please respond to
> "General discussion of project-wide
> or architectural issues."
> The XSL formatter stops formatting when it encounters " ". This
would seem like a trivial issue but we have very complex XSLs. If I
cannot get around this issue I don't think I will be able to use this
tool for XSL editing. Is there something I can do to resolve this issue
in preferences? Am I posting this issue to the correct place?
> Lance Campbell
> Project Manager/Software Architect
> Web Services at Public Affairs
> University of Illinois
> wtp-dev mailing list
> wtp-dev mailing list