Hi guru jmkyoung,
The generateid() and key() magic works! You really helped me a lot to solve this puzzle. I've seen your explanation and code and do have a clearer picture of the logic on how the script works. I just maybe need a bit of time to understand the usage and know how to apply those axis and functions correctly.
Thank you very much, have a nice weekend.
Best Regards,
Gaiason
User Profile
Collapse
-
Hi guru jkmyoung,
One more question that I have been scratching my head. As the tags are closed, I would always need to wrap it around the preceding sibling.
So for the fmtnfro type="3" I need to wrap the tags <LINE></LINE> in between the fmtnfro type="5"Code:<LINE> <WORDS>1</WORDS> <WORDS>2</WORDS> </LINE>
Leave a comment:
-
Hi guru jkmyoung,
Thanks for the help and code. It works. Now just for me to understand how you did that magic.
First thing is that you removed my excess apply templates to prevent duplication of the txt infomation, and choosing to apply template for the fmtnfo nodes, as they are located there.
Second thing is the part that gets a bit advance and without your help, I don't thing I might ever come out with...Leave a comment:
-
Hi I'm also noob, but I manage to find this code for space
You can try adding this within the template:
<xsl:value-of select="'  '" />
or
<xsl:text> </xsl:text>
Hope it helps.
Cheers,
Gaiason...Leave a comment:
-
Please help on this XML/XSLT
Hi XML/XSLT masters and gurus,
I am a newbie in XML/XSLT and have been reading up XML/XSLT in order to convert a XML generated from a OCR engine to another format of XML. I am truly stuck at this stage that I really need expert help on what is the thing that I might be missing or not understand.
Basically, my desired output is to get the text into the WORD tags like this:
<WORD coords="559,518 ,641,629">12</WORD>...
No activity results to display
Show More
Leave a comment: