vw98034
06-01-2006, 04:35 PM
I have done an extended online search, but can't find solutions for thoses problems. Please help if you know the solutions, or where to find the solutions, or a better place to ask this question.
Here are the problems.
1) how to embed html tags in a XML which will be processed by XSL?
The XMLSpy doesn't let me add html tags into a par field. I let the CDATA hold the tags, but the section data won't get parsed.
2) Counter inside of xsl:for-each
With the xsl:choose tag inside of xsl:for-each tag, I need to count the number of nodes met the condition. How to set up the counter?
3) Flag inside of xsl:for-each
With the xsl:if tag inside of xsl:for-each tag, I need to know whether a node met the condition by the end of the loop. How to set up the flag variable?
Thanks very much for your information in advance.
v.
Here are the problems.
1) how to embed html tags in a XML which will be processed by XSL?
The XMLSpy doesn't let me add html tags into a par field. I let the CDATA hold the tags, but the section data won't get parsed.
2) Counter inside of xsl:for-each
With the xsl:choose tag inside of xsl:for-each tag, I need to count the number of nodes met the condition. How to set up the counter?
3) Flag inside of xsl:for-each
With the xsl:if tag inside of xsl:for-each tag, I need to know whether a node met the condition by the end of the loop. How to set up the flag variable?
Thanks very much for your information in advance.
v.