Subject: [xsl] Re: unwelcome SPAN in text output From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx> Date: Sat, 26 Apr 2003 08:17:34 +0200 |
And what is the XML that you haven't shown to us? ===== Cheers, Dimitre Novatchev. http://fxsl.sourceforge.net/ -- the home of FXSL "Arthur Allen" <arthur_allen@xxxxxxxxxxx> wrote in message news:Law8-F81oe2U8QVjp3b0000a83b@xxxxxxxxxxxxxx > I've been trying to prepare a tab-and-newline-delimited load file > for mysql, and am finding my output > file cluttered with unwanted <SPAN> elements! It looks > to me like I am in a twilight zone between text & HTML. > > E.g., instead of > > usfr-gc_GeneralConcepts en "US GAAP - Commercial and Industrial" > int-ar_AccountantsReport en "Accountants Report" > > I get the following, which BTW looks ok on the screen: > > <SPAN S_='02493EA0 12'>usfr-gc_GeneralConcepts</SPAN><SPAN S_='02493EA0 > 13'> </SPAN><SPAN S_='02493EA0 14'>en</SPAN><SPAN S_='02493EA0 > 15'> </SPAN><SPAN S_='02493EA0 16'>"</SPAN><SPAN S_='02493EA0 17'>US GAAP - > Commercial and Industrial</SPAN> > > This happens regardless of whether I use Saxon (6.5.2) or the > processor native to Stylus Studio, but not using MSXML3.0. > > My code runs as follows... > <?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:all/taxo:itemTable/taxo:item/taxo:label"/> > </xsl:template> > <xsl:template match="taxo:label"> > <xsl:variable name="ID" select="parent::taxo:item/@taxo:name"/> > <!--emit ID,language,label tuple--> > <xsl:value-of select="$ID"/> > <xsl:text>	</xsl:text> > <xsl:value-of select="@xml:lang"/> > <xsl:text>	</xsl:text> > <xsl:text>"</xsl:text> > <xsl:value-of select="."/> > <xsl:text>"</xsl:text> > <xsl:text>
</xsl:text> > </xsl:template> > </xsl:stylesheet> > > Thanks for your attention, > Arthur Allen > > > _________________________________________________________________ > Tired of spam? Get advanced junk mail protection with MSN 8. > http://join.msn.com/?page=features/junkmail > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] unwelcome SPAN in text output, Arthur Allen | Thread | RE: [xsl] unwelcome SPAN in text ou, Michael Kay |
Re: [xsl] That old song "document(), Mike Brown | Date | [xsl] anyone can solve it, Cheung Tin Po |
Month |