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

RE: "<" output problems

Subject: RE: "<" output problems
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 28 Sep 2001 13:58:53 +0100
xml gt lt qout
> I have problems to output a "<" and ">".

Some questions:
- are you trying to output XML, or some other format?
- are the "<" and ">" you want to output markup characters, or ordinary text
characters?

Assuming that you are writing XML, then presumably the "<" and ">" are
intended as markup, otherwise you would want them written as "&lt;" and
"&gt;". In this case you should not be writing characters from your
stylesheet, you should be writing element nodes which are turned into markup
when the result tree is serialized.

You can "cheat" by writing
<xsl:text disable-output-escaping="yes">&lt;</xsl:text>

But it's not recommended, and it's hardly ever needed by people who have
mastered XSLT. That's partly because it won't always work, and partly
because it breaks the design philosphy of the language, which is that an
XSLT transformation produces a tree, not a serial file as its output.

Mike Kay

> The output should be a schema as well.
>
>  the special characters &lt; &gt; does not work. output: &lt
> (but &qout works)
>
> to write the unicode for ">" &#62; does not work.
> output: &gt.
>
> "<xsl:text disable-output-escaping="yes"> < </xsl:text>"
> does not work too. error.
>
> So I tried this:
> <xsl:param name="dings" select="concat('&quot;',$pre,'&quot;')"/>
> <simpleType>
>             <restriction base='$dings'/>
>  </simpleType>
>
> I want to output the content of "$dings" in the result, but
> like this it
> does not work of course, maybe someone has an idea??
>
> Would be great! Thanx to the people who answered my previous
> question, it
> helped me enormously!
>
> greeets
>
> Thilo
>
> --
> GMX - Die Kommunikationsplattform im Internet.
> http://www.gmx.net
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


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


Current Thread

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-2007 All Rights Reserved.