Subject: RE: XSL questions
From: cknell@xxxxxxxxxx
Date: Thu, 01 Jun 2006 12:07:47 -0400
|
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 |
- XSL questions
- Wei Wei - 1 Jun 2006 15:42:14 -0000
- <Possible follow-ups>
- cknell - 1 Jun 2006 16:07:42 -0000 <=
- Wei Wei - 1 Jun 2006 17:05:34 -0000
- Wei Wei - 1 Jun 2006 18:09:00 -0000
|
|