RE: easy question

Subject: RE: easy question
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 21 Jul 1999 09:00:26 +0100
> I am trying to get output as follows: <IMG/>
It's not an easy question, though it is a FAQ.

You can't generate markup in your output document by pretended it's text.

In this case the output you want is well-formed so "<IMG/> in your
stylesheet will generate either <IMG/> or <IMG></IMG> in your output: if the
output is XML then the two are equivalent so you shouldn't need to care
about the difference. If the output isn't XML, but some other format that
happens to use angle brackets, then XSLT isn't designed to do the job.

SAXON has a back-door mechanism to get round the problem if you need to (as
you do sometimes, e.g. to generate <%...%> in ASP pages): you can write

Mike Kay

 XSL-List info and archive:

Current Thread
  • easy question
    • Rolande Kendal - Tue, 20 Jul 1999 10:49:58 -0400
      • <Possible follow-ups>
      • Kay Michael - Wed, 21 Jul 1999 09:00:26 +0100 <=