[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: CSS selectors are syntactic sugar for XPath expressions

  • From: Tony Graham <tgraham@antenna.co.jp>
  • To: xml-dev@lists.xml.org
  • Date: Tue, 22 Mar 2022 08:57:26 +0000

Re:  CSS selectors are syntactic sugar for XPath expressions
On 22/03/2022 01:13, Liam R. E. Quin wrote:
...
Which came first depends on whether you see XPath as a natural
evolution of HyTime and TEI Pointers combined with the needs of DSSSL,
or as something new, but then, CSS was influenced by Grif.
Maybe not so much: Hakon Wium Lie's Ph.D thesis on Cascading Style
Sheets [1], unsurprisingly, cites [2] his own 'Cascading HTML Style
Sheets' (CHSS) [3] and Bert Bos's 'Stream-based style sheet proposal'
(SSP) as the basis for CSS development.

CHSS selectors look like the left-side of X11 Resource declarations.
SSP selectors also look a lot like X11 Resource names that use '*' to
skip levels of the element hierarchy.

The thesis discusses the P language [5] that is one of the 'Thot'
languages implemented in the Thot library that is/was part of both Grif
and the Amaya web browser, among others. As described in the thesis,
the P language in Amaya had to be extended to better handle CSS.

The more complex P selector provided in the thesis manages to not look
like CSS:

LI: BEGIN
if within OL Size: 10 pt;
END;

Regards,


Tony Graham.
--
Senior Architect
XML Division
Antenna House, Inc.
----
Skerries, Ireland
tgraham@antenna.co.jp


[1] http://web.archive.org/web/20220214071421/https://www.wiumlie.no/2006/phd/
[2] http://web.archive.org/web/20220214071421/https://www.wiumlie.no/2006/phd/#h-274
[3] http://web.archive.org/web/20220214071421/https://www.wiumlie.no/2006/phd/#h-164
[4] http://web.archive.org/web/20220214071421/https://www.wiumlie.no/2006/phd/#h-231
[5] http://web.archive.org/web/20220214071421/https://www.wiumlie.no/2006/phd/#h-107


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.