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

RE: easy question

Subject: RE: easy question
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 21 Jul 1999 09:00:26 +0100
mike latone
> 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
<xsl:tag>IMG/</xsl:tag>

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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 <=

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
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.