list4xt : Mailing list for the XT users community.
[list4xt] Re: Entities in output file. why?
Subject: [list4xt] Re: Entities in output file. why?
From: Eric van der Vlist (vdv@dyomedea.com)
Date: 05/10/2000 - 20:53
"Carlberg, Anders" wrote:
>
> Hi!..
>
> Oh, i see.
> No, i just want to use XT, like the xt.exe.
> but i want the output in a string in the end.
>
> What should i use?
>
I gave some instructions a while ago about this:
/list/0257.html
Can you see if they can help you ?
Eric
> I totaly new with this..
>
> /Anders
>
> -----Original Message-----
> From: Eric van der Vlist [mailto:vdv@dyomedea.com]
> Sent: Thursday, October 05, 2000 6:31 PM
> To: list4xt@4xt.org
> Subject: [list4xt] Re: Entities in output file. why?
>
> "Carlberg, Anders" wrote:
> >
> > Hi.
> >
> > Im using a example you have wrote. (TextDriver).
> > (All i have done is tried to write a StringDestination. But we can skip
> that
> > part.)
>
> It's just what TextDriver is expected to do !
>
> Please read the README in /downloads/rss/ and also the
> readme for this example:
>
> /downloads/rss/text-to-10.txt
>
> TextDriver is using a very specific parser
> (/downloads/rss/TextSAXParser.java)
> which is reading lines from a non XML text file with a specific format.
>
> Used over a XML document, it will not do anything special with the XML
> markup which will be managed as CDATA and written back as entities by
> the output handler.
>
> Had you any specific need to use this driver ?
>
> Eric
>
> >
> > But when i run your example using my xslt i get entities in the output
> file.
> > (downloaded from /downloads/rss/TextDriver.java 08/19/00,
> 6447
> > bytes )
> >
> > But when i use xt.exe i got correct output.
> >
> > Why?
> >
> > Thanks in advance.
> >
> > /Anders
> >
> > -----Original Message-----
> > From: Eric van der Vlist [mailto:vdv@dyomedea.com]
> > Sent: Thursday, October 05, 2000 5:32 PM
> > To: list4xt@4xt.org
> > Subject: [list4xt] Re: Entities in output file. why?
> >
> > Anders,
> >
> > "Carlberg, Anders" wrote:
> > >
> > > > What you are doing makes sense and your stylesheet seems to be working
> > > > perfectly (I have tested it with XT and MSXML) and gives (with XT):
> > > Yes, i know. So my problem is more a java problem.
> >
> > You need to tell more about the Java environment you are using, then.
> >
> > Are you using XT from the command line ? within a servlet, using a class
> > you have developed, ...
> >
> > > > Also, you should avoid using xml as a tag name since all the names
> > > > starting by "xml" are reserved by the W3C.
> > > Thanks for the tip.
> > >
> > > I have tested again after that i fixed the stylesheet and the xml file,
> > and
> > > i still get the entities in the output.
> > >
> > > Do i have a encoding or contentType problem?
> >
> > I can't tell.
> > The only thing I can tell is that I don't reproduce your problem running
> > the Driver class from the command line.
> >
> > Eric
> >
> > > Thanks.
> > >
> > > /Anders
> > >
> > > -----Original Message-----
> > > From: Eric van der Vlist [mailto:vdv@dyomedea.com]
> > > Sent: Wednesday, October 04, 2000 11:28 PM
> > > To: list4xt@4xt.org
> > > Subject: [list4xt] Re: Entities in output file. why?
> > >
> > > Anders,
> > >
> > > What you are doing makes sense and your stylesheet seems to be working
> > > perfectly (I have tested it with XT and MSXML) and gives (with XT):
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <xsl:stylesheet version="1.0"
> > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> > > <xsl:template match="xml">
> > > <input>
> > > <name>mytextbox</name>
> > > <value><xsl:value-of select="/xml/name/text()"/></value>
> > > </input>
> > > </xsl:template>
> > > </xsl:stylesheet>
> > >
> > > The only difference with the result you mention is that, being well
> > > formed XML, the input element gets a end tag.
> > >
> > > I don't see why you would want to create a XSL stylesheet which wouldn't
> > > be well formed (wouldn't be a XSLT stylesheet by the way), but is this
> > > what you meant ?
> > >
> > > Also, you should avoid using xml as a tag name since all the names
> > > starting by "xml" are reserved by the W3C.
> > >
> > > Eric
> > >
> > > "Carlberg, Anders" wrote:
> > > >
> > > > Hi!.
> > > >
> > > > Im using xslt to generate a new xslt file that i will apply on another
> > xml
> > > > file.
> > > > (does this make any sence at all? =) ).
> > > >
> > > > example. i uses xsl:element to create new xsl:stylesheet in the
> output.
> > > >
> > > > Here are my xslt file:
> > > > <xsl:stylesheet version="1.0"
> > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> > > >
> > > > <xsl:template match="xml">
> > > > <xsl:element name="xsl:stylesheet">
> > > > <xsl:attribute name="version">1.0</xsl:attribute>
> > > >
> > > > <xsl:element name="xsl:template">
> > > > <xsl:attribute
> name="match">xml</xsl:attribute>
> > > >
> > > > <xsl:apply-templates select="textbox"/>
> > > >
> > > > </xsl:element>
> > > > </xsl:element>
> > > > </xsl:template>
> > > >
> > > > <xsl:template match="textbox">
> > > > <xsl:element name="input">
> > > > <xsl:element name="name"><xsl:value-of
> > > > select="name/text()"/></xsl:element>
> > > > <xsl:element name="value">
> > > > <xsl:element name="xsl:value-of">
> > > > <xsl:attribute
> > name="select"><xsl:value-of
> > > > select="value/text()" />/text()</xsl:attribute>
> > > > </xsl:element>
> > > > </xsl:element>
> > > > </xsl:element>
> > > > </xsl:template>
> > > > </xsl:stylesheet>
> > > >
> > > > the xml file:
> > > > <xml>
> > > > <textbox>
> > > > <name>mytextbox</name>
> > > > <value>/xml/name</value>
> > > > </textbox>
> > > > </xml>
> > > >
> > > > The result of this should be something like this:
> > > > <xsl:stylesheet version="1.0">
> > > > <xsl:template match="xml">
> > > > <input>
> > > > <name>mytextbox</name>
> > > > <value>
> > > > <xsl:value-of select="/xml/name/text()"></xsl:value-of>
> > > > </value>
> > > > </xsl:template>
> > > > </xsl:stylesheet>
> > > >
> > > > Thanks..
> > > >
> > > > /Anders
> > > >
> > > > -----Original Message-----
> > > > From: Eric van der Vlist [mailto:vdv@dyomedea.com]
> > > > Sent: den 4 oktober 2000 15:45
> > > > To: list4xt@4xt.org
> > > > Subject: [list4xt] Re: Entities in output file. why?
> > > >
> > > > Anders,
> > > >
> > > > I don't understand what you want to achieve.
> > > >
> > > > Can you tell us more ?
> > > >
> > > > (for instance, do you want to generate a conferment XML file ?)
> > > >
> > > > Eric
> > > >
> > > > "Carlberg, Anders" wrote:
> > > > >
> > > > > Hi!
> > > > >
> > > > > I'm using the FileDestination to get a output into a file,
> > > > > but i dont understand why i get entities in the output.
> > > > >
> > > > > like this:
> > > > > <?xml version="1.0" encoding="utf-8"?>
> > > > > <xml> <textbox> <name>mytextbox</name>
> > > > > <value>Anders</value> </textbox> </xml>
> > > > >
> > > > > I have tried to set the encoding and contentType but it dont changes
> > > > > anything.
> > > > > Where do i set this, so i get:
> > > > > <xml><textbox>...... output?
> > > > >
> > > > > Help me understand this.
> > > > >
> > > > > Thanks in advance
> > > > > /Anders
> > > > >
> > > > > Anders Carlberg
> > > > > Infologigruppen Norr AB
> > > > > Furunäsvägen 105
> > > > > S-941 52 Piteĺ Sweden
> > > > >
> > > > > Tel. +46 91193428
> > > > > Fax. +46 91193425
> > > > > Mob. +46 703169511
> > > > > Mob. Fax. +46 703833817
> > > > >
> > > > > --
> > > > > Mailing list for the XT users community. (http://merchantsolutionsgroup.com)
> > > > > (mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)
> > > >
> > > > --
> > > >
> ------------------------------------------------------------------------
> > > > Eric van der Vlist Dyomedea
> http://flydesignmedia.com
> > > > http://merchantaccountsreview.com - http://vitessefinancial.com
> http://jenningscountychamber.org
> > > >
> ------------------------------------------------------------------------
> > > >
> > > > --
> > > > Mailing list for the XT users community. (http://finivcredit.com)
> > > > (mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)
> > > >
> > > > --
> > > > Mailing list for the XT users community. (http://thesmokeadvisors.com)
> > > > (mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)
> > >
> > > --
> > > ------------------------------------------------------------------------
> > > Eric van der Vlist Dyomedea http://millingtonandcompanycpas.com
> > > http://merchantaccount.cc - http://socialedgesummit.com http://mfbbank.com
> > > ------------------------------------------------------------------------
> > >
> > > --
> > > Mailing list for the XT users community. (http://laportesavingsbank.com)
> > > (mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)
> > >
> > > --
> > > Mailing list for the XT users community. (http://austinfairhousingsummit.com)
> > > (mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)
> >
> > --
> > ------------------------------------------------------------------------
> > Eric van der Vlist Dyomedea http://firstbankcardprocessing.com
> > http://cheapestmerchantaccounts.com - http://creditcardprocessing101.com http://highriskcc.com
> > ------------------------------------------------------------------------
> >
> > --
> > Mailing list for the XT users community. (http://24sevencart.com)
> > (mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)
> >
> > --
> > Mailing list for the XT users community. (http://banksocialmediaconference.com)
> > (mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)
>
> --
> ------------------------------------------------------------------------
> Eric van der Vlist Dyomedea http://rvffcu.org
> http://merchantprocessor.com - http://merchantservicesnj.com http://merchantservice.cc
> ------------------------------------------------------------------------
>
> --
> Mailing list for the XT users community. (http://telecomvt.org)
> (mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)
>
> --
> Mailing list for the XT users community. (http://canaanchamber.com)
> (mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)
--
------------------------------------------------------------------------
Eric van der Vlist Dyomedea http://electroniccigarettemerchantaccount.com
http://retailpaymentsolutions.com - http://innoventurescapitalpartners.com http://sfqg.org
------------------------------------------------------------------------
--
Mailing list for the XT users community. (http://nps2012charlotte.com)
(mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)
Archive générée par hypermail 2b28 le 06/11/2001 - 11:46 CET
webmaster@4xt.org
|