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

RE: More mixed XML & HTML

Subject: RE: More mixed XML & HTML
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Tue, 15 Jun 2004 12:05:55 -0400
xml html
> From: Stephen Tredrea [mailto:stephen.tredrea@xxxxxxxxxxxxx] 
> 
> What I'm 
> trying to do is create 'placeholders' in the XSL that will 
> write all the appropriate HTML within the related node. What 
> is does currently is write the HTML AND the XML tag so I see 
> the HTML in the browset window.
> 

You want to copy the contents of the head_sec and body_sec elements to
the output, elements and all, right?  Change from what you have to this
-

<td><xsl:copy-of select="/root/head_sec/*" /></td>
...
<td><xsl:copy-of select="/root/body_sec/*" /></td>

With this you can get rid of that catch-all template you have at the
end.  Make sure to include the "/*", otherwise the head_sec element will
be copied too, which is not what you want.

Notice that I changed from your "//head_sec"  to "/root/head_sec".  It
won't matter in your example because it is so samll, but in general,
don't use "//" unless you don't know where an element is located or you
need to select elements of any depth of nesting.  Using // forces the
processor to examine every branch all the way to its end, each time you
specify it.  That can take a long time for a large, complex document.

Cheers,

Tom P

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.