Gentlemen,
The problem is solved: it turns out (as Michael
surmised) that my IDE -- Stylus Studio -- is at fault,
that the processors are indeed blameless. The reason
the microsoft processor works is that it is launched
as an external process, and its output was not mangled.
I upgraded to the latest version (see note from Ivan
below) & it works like a charm.
Many thanks. This forum is great!
Arthur Allen
From: Ivan Pedruzzi <ipedruzz(_at_)progress(_dot_)com>
Reply-To: ipedruzz(_at_)progress(_dot_)com
To: "'Arthur Allen'" <arthur_allen(_at_)hotmail(_dot_)com>
Subject: RE: [xsl] unwelcome SPAN in text output
Date: Tue, 29 Apr 2003 20:58:55 -0400
Arthur,
Are you using Stylus Studio to run your stylesheet ?
If yes what version ?
I am aware that an old version (before 103q) had this problem.
You can download the update for free at
http://www.stylusstudio.com/update
Regards
Ivan
> -----Original Message-----
> From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
> [mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of
> Arthur Allen
> Sent: Tuesday, April 29, 2003 5:53 PM
> To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
> Subject: RE: [xsl] unwelcome SPAN in text output
>
>
> Tom & Michael,
>
> Thanks for your help. I'm new to this list, and also to XSLT
> (what a struggle, even aided by Michael's excellent book).
>
> I've assembled all the pieces this time:
>
> * input sample (no SPAN elements that I can detect, very short)
> * stylesheet (with text output mode set)
> * the output loaded with SPAN.
>
> I'm flumoxed. I have noticed that the processor ignores
> my newline instruction <xsl:text>
> </xsl:text>
>
>
> Thanks again, Arthur A.
>
>
> The complete output:
>
> <SPAN S_='07381AA8 13'>usfr-gc_GeneralConcepts</SPAN><SPAN
> S_='07381AA8
> 14'> </SPAN><SPAN S_='07381AA8 15'>1</SPAN><SPAN S_='07381AA8
> 16'> </SPAN><SPAN S_='07381AA8 17'>1</SPAN><SPAN S_='07381AA8
> 18'> </SPAN><SPAN S_='07381AA8 1C'>
> </SPAN></S__>
>
>
> The style sheet is:
>
> <?xml version='1.0'?>
>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
> xmlns:taxo="urn:taxonomy-analysis:xslt"
> xmlns:saxon="http://icl.com/saxon"
> xmlns:msxsl="urn:schemas-microsoft-com:xslt"
> >
> <xsl:output method="text" encoding="UTF-8" indent="no"/>
>
> <xsl:template match="/">
> <xsl:apply-templates
> select="taxo:presentationTree/taxo:show"/>
> </xsl:template>
> <xsl:template match="taxo:show">
> <xsl:variable name="parentID"
> select="ancestor::taxo:show[1]/@taxo:name"/>
>
> <!--emit ID, position, depth, parent ID tuple-->
> <xsl:value-of select="@taxo:name"/>
> <xsl:text> </xsl:text>
> <xsl:value-of select="@taxo:index"/>
> <xsl:text> </xsl:text>
> <xsl:value-of select="@taxo:depth"/>
> <xsl:text> </xsl:text>
> <xsl:if test="$parentID">
> <xsl:value-of select="$parentID"/>
> </xsl:if>
> <xsl:text>
> </xsl:text>
> <xsl:apply-templates select="taxo:show"/>
> </xsl:template>
> </xsl:stylesheet>
>
>
> and the input is
>
> <?xml version='1.0' ?>
> <taxo:presentationTree xmlns:msxsl="urn:schemas-microsoft-com:xslt"
> xmlns:xlink="http://www.w3.org/1999/xlink"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:link="http://www.xbrl.org/2001/XLink/xbrllinkbase"
> xmlns:taxo="urn:taxonomy-analysis:xslt"
> xmlns:saxon="http://icl.com/saxon"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <taxo:show auto-ns1:name="usfr-gc_GeneralConcepts"
> xmlns:auto-ns1="urn:taxonomy-analysis:xslt" auto-ns1:index="1"
> auto-ns1:depth="1"><taxo:label xml:lang="en">US GAAP - Commercial and
> Industrial</taxo:label></taxo:show></taxo:presentationTree>
>
> _________________________________________________________________
> MSN 8 with e-mail virus protection service: 2 months FREE*
> http://join.msn.com/?page=features/virus
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list