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

Re: < problem

Subject: Re: < problem
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 30 Oct 2001 00:05:54 GMT
xsl fo lt problem


}  
} <link>This link do a &lt;a href="click.pdf"&gt;click
} $lt;/a</link>   .

That's the source of your problem. If you have any control overthe
source XML documents don't write them like this! If you want an a
element in the source do so:


<link>This link do a <a href="click.pdf">click</a></link>   .

then you will be in a much better shape.

If not you are not processing an XML input tree but just trying to parse
expressions in a plain text string. It is possible to do this in simple
cases in XSLT but XSLT just isn't designed for that job. You would be
much better using perl or sed or emacs or any other language that treats
the input as text rather than as a node tree,.

} and my style is as below
} <xsl:value-of disable-output-escaping = "yes"
} select="normalize-space(link)"/>

search the archives of this list and you will see 1000 reasons why it is
almost never a good idea to use disable-output-encoding.
 

> but the output does not give me a link in the html it
actually most systems would (if outputting to a file) give you link
markup from that command, but the XSLT specification explictly allows a
processor to ignore disable-output-encoding. Some do, and it's more or
less inevitable that it will be ignored in some embedded applications
where the output from xslt is passed straight to another application
without being written out and re-parsed.

what processor are you using?

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

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