[
Lists Home |
Date Index |
Thread Index
]
G. Ken Holman wrote:
>> After all, the input
>> to XSLT doesn't have to be 'proper' XML, doesn't it?
>
> It is an absolute requirement to have well-formed XML.
Nitpick: You need to pass the XSLT processor some data
in the same form an XML parser would do. You *can* write
a parser which reads CSS syntax and transforms them on the
fly into some SAX events, pretending you read
<style>
<group>
<matches>
<match><e>p</e></match>
<match><e class="sect">div</e></match>
</matches>
<font-size>12pt</font-size>
...
instead of
p, div.sect { font-size: 12pt, ...
(I don't claim the XML above is well designed).
J.Pietschmann
|