Quote:
Originally Posted by Veikoh
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
- Content (element tags).
- Presentation or styling (CSS and / or XSLT).
- (Dynamic) behaviour. Programming or scripting.