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

RE: XSL questions

Subject: RE: XSL questions
From: cknell@xxxxxxxxxx
Date: Thu, 01 Jun 2006 12:07:47 -0400
RE:  XSL questions
1) how to embed html tags in a XML which will be processed by XSL?

Just type them in. Keep in mind that HTML tags, when embedded in an XML document, must meet the well-formedness test. For example you can't have this:

<ol>
  <li>banana
  <li>apple
  <li>grape
</ol>

in an XML document. You must close the tags like this:
<ol>
  <li>banana</li>
  <li>apple</li>
  <li>grape</li>
</ol>

All HTML attributes must be quoted:

<td width=0> ---> NOT LEGAL IN XML
<td width="0"> --> OK


2) Counter inside of xsl:for-each

No. Can't be done. Variables cannot change value once assigned. You will have to think of another way to do this that is in keeping with the "no-side-effects", declarative nature of XSLT.

3) Flag inside of xsl:for-each

See the answer to 2) above. 

xsl:for-each is not a looping construct. Its name resembles a common looping construct in procedural languages, but it's purpose in XSLT is different.
===========================================

This list works best when you tell us what you want to accomplish and show a sample of the input and desired output.
-- 
Charles Knell
cknell@xxxxxxxxxx - email

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.