This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: pi() giving wierd problems.
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: pi() giving wierd problems.
- From: Joshua Allen <joshuaa at microsoft dot com>
- Date: Thu, 3 Aug 2000 10:56:45 -0700
- Cc: "'roland at dunn dot co dot uk'" <roland at dunn dot co dot uk>
- Reply-To: xsl-list at mulberrytech dot com
Sorry, pi() is not part of the current XSLT/XPath specs, and
was implemented along with the earlier working drafts.
Check out:
http://www.dpawson.freeserve.co.uk/xsl/N6145.html
for more info on the new way to do PIs. See
http://www.netcrucible.com for more info
on getting the latest MSXML and a test tool that
gives you fairly good error informatgion about your
stylesheets..
> -----Original Message-----
> From: lists@dunn.co.uk [mailto:lists@dunn.co.uk]
> Sent: Thursday, August 03, 2000 9:14 AM
> To: xsl-list@mulberrytech.com
> Subject: pi() giving wierd 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@dunn.co.uk
> 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
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list