Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #24315

Re: Data retrieving from html text on a webpage

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Data retrieving from html text on a webpage
Date Wed, 21 May 2014 17:55:30 +0200
Organization PointedEars Software (PES)
Lines 36
Message-ID <2712204.XrRk9J9qZ2@PointedEars.de> (permalink)
References <08bb65e9-25e1-47f0-94bd-c1cb6525375e@googlegroups.com> <lldu05$787$1@dont-email.me> <537a7de1$0$6653$9b4e6d93@newsspool3.arcor-online.net> <0.fafab0c7006db4827180.20140520004016BST.87wqdhxrq7.fsf@bsb.me.uk> <537b39bd$0$6664$9b4e6d93@newsspool3.arcor-online.net> <1636414.i5R9Cm98m3@PointedEars.de> <0.7e3f6ab9ff9c0c2b3551.20140521135136BST.87oayruwfb.fsf@bsb.me.uk>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1400687732 4011 eJwNxckBwDAIA7CZUmMD64Rj/xEafUToqNxEGZe7ZCU4rtMdkPDhqrTV5veFhHIUkWEx/AEVaRCn (21 May 2014 15:55:32 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Wed, 21 May 2014 15:55:32 +0000 (UTC)
User-Agent KNode/4.12.4
X-User-ID eJwVysERACEIBMGUUBaQcJSV/EM47zddNaY+vAJuDmtrhNS2VgqKXpt/SJ1JrkYi5nPSdTJM9s2GnuXXMOJd/QFo4RXp
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2ux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NyMkBwCAIBMCWVFiOcjYg/Zdg5jkQ21auBlMM5i7rw1DnKOCpGULGspUcqf3fna+8U1h98AATKBEP
Xref csiph.com comp.lang.javascript:24315

Show key headers only | View raw


Ben Bacarisse wrote:

> Thomas 'PointedEars' Lahn <PointedEars@web.de> writes:
>> Christoph Michael Becker wrote:
>>> Indeed, using XSLT might be a good idea, but this *can* also be used
>>> from an ECMAScript implementation.
>>
>> True.  However, it appears to me that it is still proprietary. [0]
> 
> As it happens, I was replying to the "better alternatives to javascript"
> part.  I wasn't suggesting a specific JS library.  The tool I'd found
> useful was the xsltproc command, built with libxslt which seems to be
> part of GNOME.

There is no “JS library” involved in using XSLT with (Mozilla|V8) JavaScript 
and Apple JavaScriptCore at least.  It is a built-in feature of the Gecko 
DOM and WebCore.  Follow the reference.
 
>> The explanation for the abbreviation is correct, which is why XSLT is
>> probably *not* a good approach here.  XSLT can be used to *transform*
>> *XML*-based markup to other markup or plain text. [1]  The original
>> markup here is neither [2].  It would have to be cleaned-up and converted
>> to XHTML in order to apply XSLT to it.
> 
> I used xsltproc on some pretty dreadful HTML texts.  The command has a
> flag to signal that the input is HTML, but I have no idea what it really
> does.

Obvious.  In order to process HTML, it must include an HTML parser which a 
true XSLT processor does not.  See above.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Data retrieving from html text on a webpage FAISAL ISMAIL <faesal19@gmail.com> - 2014-05-18 01:18 -0700
  Re: Data retrieving from html text on a webpage Denis McMahon <denismfmcmahon@gmail.com> - 2014-05-18 15:41 +0000
  Re: Data retrieving from html text on a webpage "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-05-18 17:41 +0200
    Re: Data retrieving from html text on a webpage FAISAL ISMAIL <faesal19@gmail.com> - 2014-05-18 12:52 -0700
  Re: Data retrieving from html text on a webpage Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-18 23:29 +0200
    Re: Data retrieving from html text on a webpage John Harris <niam@jghnorth.org.uk.invalid> - 2014-05-19 11:04 +0100
      Re: Data retrieving from html text on a webpage Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-19 13:11 +0200
        Re: Data retrieving from html text on a webpage John Harris <niam@jghnorth.org.uk.invalid> - 2014-05-20 10:43 +0100
          Re: Data retrieving from html text on a webpage Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-21 14:34 +0200
            Re: Data retrieving from html text on a webpage John Harris <niam@jghnorth.org.uk.invalid> - 2014-05-22 10:42 +0100
    Re: Data retrieving from html text on a webpage FAISAL ISMAIL <faesal19@gmail.com> - 2014-05-22 09:07 -0700
  Re: Data retrieving from html text on a webpage Denis McMahon <denismfmcmahon@gmail.com> - 2014-05-19 21:44 +0000
    Re: Data retrieving from html text on a webpage Christoph Michael Becker <cmbecker69@arcor.de> - 2014-05-19 23:55 +0200
      Re: Data retrieving from html text on a webpage "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-05-20 00:04 +0200
        Re: Data retrieving from html text on a webpage Christoph Michael Becker <cmbecker69@arcor.de> - 2014-05-20 12:59 +0200
          Re: Data retrieving from html text on a webpage "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-05-20 17:13 +0200
      Re: Data retrieving from html text on a webpage Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-05-20 00:40 +0100
        Re: Data retrieving from html text on a webpage Christoph Michael Becker <cmbecker69@arcor.de> - 2014-05-20 13:17 +0200
          Re: Data retrieving from html text on a webpage Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-21 14:19 +0200
            Re: Data retrieving from html text on a webpage Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-05-21 13:51 +0100
              Re: Data retrieving from html text on a webpage Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-21 17:55 +0200
      Re: Data retrieving from html text on a webpage Denis McMahon <denismfmcmahon@gmail.com> - 2014-05-20 10:05 +0000
        Re: Data retrieving from html text on a webpage Christoph Michael Becker <cmbecker69@arcor.de> - 2014-05-20 13:03 +0200

csiph-web