RE: [xsl] XSL questions

Subject: RE: [xsl] XSL questions
From: "Rick Roen" <Rick@xxxxxxxxxxxxxxxxxx>
Date: Thu, 1 Jun 2006 10:12:55 -0600

There are others far more qualified than I, but perhaps this will help you
get started.

1) HTML are valid xml tags so I don't know why you cannot have them inside
an xml document.  The following should be possible:


I don't understand what you mean by a "par field", so perhaps this has
something to do with your problem.  Perhaps if you show the xml and xsl we
could be of more help.

2) XSLT does not have a variable that can be incremented (as far as I know)
within a loop.  Variables in XSLT are more like constants, so once set,
their value cannot be changed.   I think you will have to get your count
like "count(nodetest)" outside of a loop which should not be a problem since
if you can select the nodes and loop through them, count should also work
for the same node set.

3) I'm not exactly sure what you mean here, but if you enter the
xsl:for-each loop, then the condition has been met.  What else do you need
to know about the condition?


-----Original Message-----
From: Wei Wei [mailto:wei725@xxxxxxxxx] 
Sent: Thursday, June 01, 2006 9:41 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] XSL questions

I am very new to XSL. Here are my XSL questions.

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

Thanks for any information in advance.



Search for businesses by name, location, or phone number.  -Lycos Yellow

Current Thread