W3C home > Mailing lists > Public > www-amaya@w3.org > July to September 2005

Question about transformation syntax

From: Michael Palmer <mpalmer@sciborg.uwaterloo.ca>
Date: Mon, 12 Sep 2005 15:06:36 +0000
Message-ID: <43259951.7040504@scimail.uwaterloo.ca>
To: www-amaya@w3.org




Hi,

In the Amaya help page 'Using the HTML.trans File' it says:

"In a pattern it is possible to express conditions on sequence of tags, on the 
content of a tag and on the existence and value of attributes."

All examples on that page or in HTML.trans itself only seem to use the sequence 
and nesting of tags. I cannot find an explanation of the syntax or examples of 
usage with attributes, e.g. to transform something like

<p class="magic1">placeholder1</p>

to e.g.

<ul class="magic2">
<li>placeholder2</li>
<li>placeholder3</li>
</ul>

Is that at all possible?

Also, in the above quote, does 'content of a tag' refer to nested tag structure 
or to actual data within a tag? If the latter, is there a description of the 
syntax anywhere?

Thank you, Michael

-- 
Michael Palmer
Dept. of Chemistry, University of Waterloo
200 University Ave W
N2L 3G1 Waterloo, ON
Canada

Phone: (519) 888-4567 ext. 5100
Fax: (519) 746-0435
e-mail: mpalmer@uwaterloo.ca
Office: ESC-234 Lab: ESC-241
Received on Monday, 12 September 2005 15:27:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 20 September 2007 14:24:41 GMT