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

pi() giving wierd problems.

Subject: pi() giving wierd problems.
From: lists@xxxxxxxxxx
Date: Thu, 3 Aug 2000 17:13:55 +0100
pi problems
Has anyone also found the following with MSXSML 2.5 in IE5 (on the server in
ASP Pages):

XSL:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  <!-- Identity transformation template -->
  <xsl:template>
    <xsl:copy>
      <!-- Put on one line to prevent addition of whitespace -->
      <xsl:apply-templates select="@*|*|comment()|pi()|text()"/>
    </xsl:copy>
  </xsl:template>
</xsl:stylesheet>

i.e. essentially an identity XSL sheet.

When applied to the following very simple XML:
<?xml version="1.0" ?>
   <garden>
      <flower ID="1">
		 <name>lilly</name>
     </flower >
   </garden>

I end up with:
<?xml  version="1.0
"?>
<garden>
<flower ID="1
">
<name>
lilly
</name>
</flower>
</garden>

i.e. whereever there is an attribute with speech marks it moves it on the
next line.
If I take the pi() fn. call out of the XSL it works fine but doesn't leave
in the <?xml version="1.0" ?>.

Has anyone else found this? If so, have you found a way round it? Could you
tell me what it is!!
If you have do please email me direct on roland@xxxxxxxxxx because I get the
daily digest and it'd help me avoid
having to trawl through it each day seeing if someone replied.

Thanks, Roland.










 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.