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

Re: Exclusive formatting..

Subject: Re: Exclusive formatting..
From: tcn@xxxxxxxxxxxxx (Trevor Nash)
Date: Sun, 26 Aug 2001 16:58:30 GMT
Re:  Exclusive formatting..
On Sun, 26 Aug 2001 23:40:38 +0800 (WST), you wrote:

>Hey all,
>	I've been trying to maintain a large app at work that uses an XML
>stylesheet to return valid HTML from XML documents stored in a CVS
>repositry.
>
>To make the story short, I've been trying to learn XSL in the vauge hope
>it'll make life easier if I know what I'm trying to maintain :)
>
>But I've already ran into a problem. I want to create a stylesheet that
>will basically take in a "page" element, containing multiple "news" items.
>Each "news" item will have a "author" value, a subject (the name of the
>item), and a set of text.
>
>For some reason the stylesheet I'm using prints the formatted text fine,
>but then images the original text. I'm sure there's a fundimental concept
>I'm missing here :)
>
Perhaps just a simple typo: what do you think the last apply-templates
is doing?  You have already handled all the children of the 'news'
element explicitly, this will visit them all again.

What you may not know is that there is a set of built-in templates
which by default essentially output all the text without any markup.
This is where your 'ghost' copy is coming from.

Regards,
Trevor Nash

--
Traditional training & distance learning,
Consultancy by email

Melvaig Software Engineering Limited
voice:     +44 (0) 1445 771 271 
email:     tcn@xxxxxxxxxxxxx

 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.