View Single Post
  #9 (permalink)  
Old 12-06-2007, 12:13 PM
kgun's Avatar
kgun kgun is offline
WebProWorld 1,000+ Club
 

Join Date: May 2005
Location: Norway
Posts: 5,344
kgun RepRank 3kgun RepRank 3
Default Re: XSLT Conditionals

Quote:
Originally Posted by Veikoh View Post
The problem I tried to solve with XPath was that I had several <comment> tags for each <item> and I tried to get comments visually appear on separate WAP pages.
I added ID's for each comment but still wasn't able to format those with XSLT this way as specified with XPath.
Comment tags? Does that mean comment nodes?

Note: Comment nodes do not have an expanded name and are children of either the root (document in XPath 2.0) or the element nodes, but those are not parents of the comment nodes in XPath.

So if you are talking about comment (or processing instruction) nodes, those may be filtered with special filters in XPath.

Note:
Elements should be semantic, like links. Use descriptive and meaningful names for elements and dispaly content on your site using elements that contains information. Separate
  1. Content (element tags).
  2. Presentation or styling (CSS and / or XSLT).
  3. (Dynamic) behaviour. Programming or scripting.
Reply With Quote