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

RE: Whitespace between nodes

Subject: RE: Whitespace between nodes
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Thu, 13 May 2004 00:10:20 +0200
xsl insert whitespace
> -----Original Message-----
> From: Nicholas Shanks [mailto:contact@xxxxxxxxxxxxxx]

<snip />
> So only Libxslt behaves as I would hope, but the others do not do
> anything against the rules.

Indeed. indent="yes" simply means that the processor *may* add additional
whitespace, nothing more.

> I just want to know how to wrap the q
> elements in a "dont-insert-whitespace" instruction.

<q><a href="..">Text</a></q> ?

Forget about that always appearing as you hope.

As a further illustration: as it happens your XSL code is the same as

<q>
  <xsl:choose>
    <xsl:when test="@href != ''">
      <a href="{@href}">...</a>
    </xsl:when>
  ...
  </xsl:choose>
</q>

Would you agree that, in this case, it should be:
<q>
  <a href="...">...</a>
</q>
?

Suppose a processor performs the indentation of the result tree in a final
step, how is it supposed to distinguish between the results of your code and
those of the rewrite above?


HTH!

Greetz,

Andreas

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.