B
Bhushit Joshipura
Question 0:
In case all I am interested in is text manipulation, do I have to
define a style sheet using XSLT? I did not get the style-sheet concept
very well. Any help?
Question 1:
My needs:
1. Embedded tags within a programming language comments
2. Use these tags to identify parts of the code
3. Use the code text for manipulation
4. I may need more type of tags
seem to be satisfied by XML. However, from online tutorials, it was
not clear whether it is legal to use unenclosed text inside an xml
document. For example if the document contents were:
What happens to <root> ... <\root> me?
Question 2:
From http://www.w3schools.com tutorial I understood that text within
tags must not have a < or an & . Is this so or I need to revisit
tutorials? They suggest to use some < thing. I imagine a code like
this:
/* <if> */
if /*<condition>*/(a < b)/*<\condition>*/ \
/*<action>*/printf ("a was less than b\n");/*<\action>*/
/* <\if> */
is illegal because of a < b. Am I in my senses?
-Bhushit
In case all I am interested in is text manipulation, do I have to
define a style sheet using XSLT? I did not get the style-sheet concept
very well. Any help?
Question 1:
My needs:
1. Embedded tags within a programming language comments
2. Use these tags to identify parts of the code
3. Use the code text for manipulation
4. I may need more type of tags
seem to be satisfied by XML. However, from online tutorials, it was
not clear whether it is legal to use unenclosed text inside an xml
document. For example if the document contents were:
What happens to <root> ... <\root> me?
Question 2:
From http://www.w3schools.com tutorial I understood that text within
tags must not have a < or an & . Is this so or I need to revisit
tutorials? They suggest to use some < thing. I imagine a code like
this:
/* <if> */
if /*<condition>*/(a < b)/*<\condition>*/ \
/*<action>*/printf ("a was less than b\n");/*<\action>*/
/* <\if> */
is illegal because of a < b. Am I in my senses?
-Bhushit