From: "Braumüller, Hans" [mailto:H(_dot_)Braumueller(_at_)hanseorga(_dot_)de]
Sent: Friday, February 07, 2003 2:32 AM
Subject: RE: [xsl] [design question]
That's similar to what we do, the difference being that
your output code is
inline, whereas we reference an external stylesheet that
The match and named templates are also included as external
stylesheets in my case. The difference that everything (also
css rules) is still with the method output=html. Have you
encountered any difficulties outputting snippets of
The output method just tells the processor how the result tree should be
serialized. You should always use html as your output method if you want to
render HTML (if you use text, none of your markup will appear in the
could be either text or html, depending on whether you need to use any
markup (unless you want to use the method described next, in which case you
have to use text output).
... etc ...
Do i understand correctly after transforming your xml you get
following html snippet
and this is recognized by the browser/client as valid html
Yes (although the close tag is written out as </script>). Keep in mind that
we're doing two transformations: one to render the HTML page with the script
transformation is invoked when the client loads the file specified in the
however, which is why your external stylesheet must use text as its output.
Cool, do you get it work also with css ?
We haven't tried that, but I don't see why it couldn't work. I've built
dynamic CSS files before, using XML and WebMacro (a Java-based template
language), so I'm sure CSS rules could be provided in XML, and a text CSS
built from that using an XSLT stylesheet.
For example: <style type="text/css"
Is that legal markup for referencing an external CSS? I've always used:
<link rel="stylesheet" type="text/css" href="style/display_properties.xsl"
But yes, if you handle your transformations on the server, the above should
work equally well.
| brian martinez
| senior gui programmer 303.708.7248 |
| trip network, inc. fax 303.790.9350 |
| 6436 s. racine cir. englewood, co 80111 |
| http://www.cheaptickets.com/ http://www.trip.com/ |
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list