473,320 Members | 2,189 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

XSLT HELP PLS in urgent

Expand|Select|Wrap|Line Numbers
  1. <?xml-stylesheet type="text/xsl" href="ch1.xsl"?> 
  2. <html>
  3.     <head>
  4.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  5.         <style type="text/css">
  6. span.cls_002{ font-family:Arial,serif;font-size:22px;color:rgb(51,51,51);font-weight:bold;font-style:normal}
  7. div.cls_002{font-family:Arial,serif;font-size:22px;color:rgb(51,51,51);font-weight:bold;font-style:normal}
  8. span.cls_004{font-family:Arial,serif;font-size:12px;color:rgb(51,51,51);font-weight:normal;font-style:normal}
  9. div.cls_004{font-family:Arial,serif;font-size:12px;color:rgb(51,51,51);font-weight:normal;font-style:normal}
  10. span.cls_003{font-family:Arial,serif;font-size:9px;color:rgb(51,51,51);font-weight:normal;font-style:normal}
  11. div.cls_003{font-family:Arial,serif;font-size:9px;color:rgb(51,51,51);font-weight:normal;font-style:normal}
  12. span.cls_005{font-family:Arial,serif;font-size:8px;color:rgb(51,51,51);font-weight:bold;font-style:normal}
  13. div.cls_005{font-family:Arial,serif;font-size:8px;color:rgb(51,51,51);font-weight:bold;font-style:normal}
  14. span.cls_007{font-family:Arial,serif;font-size:9px;color:rgb(0,0,255);font-weight:normal;font-style:normal}
  15. div.cls_007{font-family:Arial,serif;font-size:9px;color:rgb(0,0,255);font-weight:normal;font-style:normal}
  16. span.cls_006{font-family:Arial,serif;font-size:9px;color:rgb(0,0,0);font-weight:normal;font-style:normal}
  17. div.cls_006{font-family:Arial,serif;font-size:9px;color:rgb(0,0,0);font-weight:normal;font-style:normal}
  18. span.cls_008{font-family:Arial,serif;font-size:17px;color:rgb(51,51,51);font-weight:bold;font-style:normal}
  19. div.cls_008{font-family:Arial,serif;font-size:17px;color:rgb(51,51,51);font-weight:bold;font-style:normal}
  20. span.cls_009{font-family:Arial,serif;font-size:14px;color:rgb(51,51,51);font-weight:bold;font-style:normal}
  21. div.cls_009{font-family:Arial,serif;font-size:14px;color:rgb(51,51,51);font-weight:bold;font-style:normal}
  22. span.cls_010{font-family:Arial,serif;font-size:9px;color:rgb(51,51,51);font-weight:bold;font-style:normal}
  23. div.cls_010{font-family:Arial,serif;font-size:9px;color:rgb(51,51,51);font-weight:bold;font-style:normal}
  24. span.cls_011{font-family:Arial,serif;font-size:10px;color:rgb(51,51,51);font-weight:bold;font-style:normal}
  25. div.cls_011{font-family:Arial,serif;font-size:10px;color:rgb(51,51,51);font-weight:bold;font-style:normal}
  26. span.cls_012{font-family:Arial,serif;font-size:9px;color:rgb(51,51,51);font-weight:bold;font-style:italic}
  27. div.cls_012{font-family:Arial,serif;font-size:9px;color:rgb(51,51,51);font-weight:bold;font-style:italic}
  28. span.cls_013{font-family:Arial,serif;font-size:9px;color:rgb(51,51,51);font-weight:bold;font-style:normal}
  29. div.cls_013{font-family:Arial,serif;font-size:9px;color:rgb(51,51,51);font-weight:bold;font-style:normal}
  30.  
  31.         </style>
  32.     </head>
  33.     <body>
  34.         <div style="position:absolute;left:0px;top:0px;width:595px;height:841px;overflow:hidden">
  35.             <div style="position:absolute;left:0px;top:0px">
  36.                 <img src="kan_files/image001.jpg" width="595" height="841"/>
  37.                         </div>
  38.  
  39.             <div style="position:absolute;left:38.20px;top:70.56px;font-family:Arial,serif;font-size:22px;color:rgb(51,51,51);font-weight:bold;font-style:normal">VOTER REGISTRATION by</div>
  40.             <div style="position:absolute;left:38.20px;top:131.23px" class="cls_004">You are NOT REGISTERED until you SIGN and SUBMIT your Voter</div>
  41.             <div style="position:absolute;left:38.20px;top:144.02px" class="cls_004">Registration Form</div>
  42.             <div style="position:absolute;left:39.65px;top:175.21px" class="cls_003">EASY INSTRUCTIONS to complete your voter registration:</div>
  43.             <div style="position:absolute;left:314.81px;top:175.21px" class="cls_003">To view the complete list of VALID address proof and age</div>
  44.             <div style="position:absolute;left:314.81px;top:184.80px" class="cls_003">proof  documents,  refer  to  Page  3.  If  you  have  opted  as  a</div>
  45.             <div style="position:absolute;left:314.81px;top:194.39px" class="cls_003">STUDENT while filling your online registration, you will find a</div>
  46.             <div style="position:absolute;left:39.65px;top:200.20px" class="cls_003">1</div>
  47.             <div style="position:absolute;left:50.18px;top:200.20px">
  48.                 <span class="cls_005">PRINT this form </span>
  49.                 <span class="cls_003">. Make sure you print pages 3 and 4 (Form 6)</span>
  50.             </div>
  51.             <div style="position:absolute;left:314.81px;top:203.97px" class="cls_003">copy of STUDENT DECLARATION FORM on last page.</div>
  52.             <div style="position:absolute;left:50.18px;top:212.69px">
  53.                 <span class="cls_003">on one page in </span>
  54.                 <span class="cls_005">back to back </span>
  55.                 <span class="cls_003">print format. This is your Voter</span>
  56.             </div>
  57.             <div style="position:absolute;left:50.18px;top:222.28px" class="cls_003">Registration  Form  -  the  official  application  required  by  the</div>
  58.             <div style="position:absolute;left:304.28px;top:228.96px">
  59.                 <span class="cls_003">4.</span>
  60.                 <span class="cls_005"> SIGN and SUBMIT </span>
  61.                 <span class="cls_003">the completed form to the</span>
  62.             </div>
  63.             <div style="position:absolute;left:50.18px;top:231.86px" class="cls_003">Election Commission to register you as a voter.</div>
  64.             <div style="position:absolute;left:314.81px;top:241.45px" class="cls_003">Electoral   Registration   Officer</div>
  65.             <div style="position:absolute;left:444.91px;top:241.45px" class="cls_003">(ERO)   of   your   Assembly</div>
  66.             <div style="position:absolute;left:314.81px;top:251.04px" class="cls_003">Constituency (AC). You will find your ERO’s address below.</div>
  67.             <div style="position:absolute;left:39.65px;top:256.85px">
  68.                 <span class="cls_003">2.</span>
  69.                 <span class="cls_005"> FILL additional fields </span>
  70.                 <span class="cls_003">, if applicable. Check</span>
  71.             </div>
  72.             <div style="position:absolute;left:62.22px;top:266.44px" class="cls_003">If  anybody  from  your  house  is  already  registered  on</div>
  73.             <div style="position:absolute;left:62.22px;top:276.02px" class="cls_003">electoral rolls, fill in their details on Page 5.</div>
  74.             <div style="position:absolute;left:314.81px;top:276.02px" class="cls_003">While submitting the Voter Registration form, do not forget to</div>
  75.             <div style="position:absolute;left:62.22px;top:285.61px" class="cls_003">If  you  are  already  a  registered  voter  from  a  different</div>
  76.             <div style="position:absolute;left:314.81px;top:285.61px" class="cls_003">ask for Receipt of Application.</div>
  77.             <div style="position:absolute;left:62.22px;top:295.20px" class="cls_003">constituency, fill in those details on Page 4. This will help</div>
  78.             <div style="position:absolute;left:62.22px;top:304.79px" class="cls_003">Election   Commission   to   cancel   your   previous   voter</div>
  79.             <div style="position:absolute;left:304.28px;top:310.60px">
  80.                 <span class="cls_003">5.</span>
  81.                 <span class="cls_005"> CONFIRM</span>
  82.                 <span class="cls_003"> your form submission to Jaago re!</span>
  83.             </div>
  84.             <div style="position:absolute;left:62.22px;top:314.37px" class="cls_003">registration.</div>
  85.             <div style="position:absolute;left:62.22px;top:323.96px" class="cls_003">If you have already been issued a Voter ID card, mention</div>
  86.             <div style="position:absolute;left:314.81px;top:323.09px" class="cls_003">One Billion Votes either by:</div>
  87.             <div style="position:absolute;left:62.22px;top:333.55px" class="cls_003">your card number and date of issue on Page 4.</div>
  88.             <div style="position:absolute;left:326.85px;top:332.68px" class="cls_003">Sending an sms “VOTE confirm” to 56767 from your mobile</div>
  89.             <div style="position:absolute;left:326.85px;top:342.27px">
  90.                 <span class="cls_003">phone as registered with </span>
  91.                 <span class="cls_007">www.jaagore.com</span>
  92.             </div>
  93.             <div style="position:absolute;left:326.85px;top:351.85px">
  94.                 <span class="cls_003">Updating your profile at </span>
  95.                 <span class="cls_007">www.jaagore.com</span>
  96.             </div>
  97.             <div style="position:absolute;left:39.65px;top:358.53px">
  98.                 <span class="cls_003">3.</span>
  99.                 <span class="cls_005"> ATTACH additional documents </span>
  100.                 <span class="cls_003">. To register</span>
  101.             </div>
  102.             <div style="position:absolute;left:50.18px;top:371.03px" class="cls_003">for voting, you will also need to submit:</div>
  103.             <div style="position:absolute;left:314.81px;top:371.03px" class="cls_003">Once you confirm, we will continuously track and confirm your</div>
  104.             <div style="position:absolute;left:314.81px;top:380.61px" class="cls_003">voter status to you by SMS and email!</div>
  105.             <div style="position:absolute;left:55.02px;top:389.33px" class="cls_006">a.</div>
  106.             <div style="position:absolute;left:64.71px;top:389.33px" class="cls_003">Address Proof document</div>
  107.             <div style="position:absolute;left:55.02px;top:398.92px" class="cls_006">b.</div>
  108.             <div style="position:absolute;left:64.71px;top:398.92px" class="cls_003">Age Proof document (for first time voters)</div>
  109.             <div style="position:absolute;left:314.81px;top:399.79px">
  110.                 <span class="cls_003">Check out </span>
  111.                 <span class="cls_007">www.jaagore.com </span>
  112.                 <span class="cls_003">to know more on what you can</span>
  113.             </div>
  114.             <div style="position:absolute;left:55.50px;top:408.51px" class="cls_006">c.</div>
  115.             <div style="position:absolute;left:64.71px;top:408.51px" class="cls_003">Student Declaration Form  (if you are a student residing</div>
  116.             <div style="position:absolute;left:314.81px;top:409.38px" class="cls_003">do with Jaago Re! One Billion Votes movement.</div>
  117.             <div style="position:absolute;left:64.71px;top:418.09px" class="cls_003">outside your native city)</div>
  118.             <div style="position:absolute;left:50.18px;top:451.79px" class="cls_003">Either   of   the   above   documents   should   be   an   official</div>
  119.             <div style="position:absolute;left:50.18px;top:461.38px" class="cls_003">Government  issued  document,  which  will  also  act  as  your</div>
  120.             <div style="position:absolute;left:50.18px;top:470.97px" class="cls_003">proof of citizenship.</div>
  121.             <div style="position:absolute;left:251.79px;top:515.30px" class="cls_005">SUBMIT YOUR FORM TO:</div>
  122.             <div style="position:absolute;left:172.71px;top:533.03px" class="cls_003">Electoral Registration Officer (ERO) of Assembly Constituency</div>
  123.             <div style="position:absolute;left:172.71px;top:552.37px" class="cls_005">163 - Shanthinagar</div>
  124.             <div style="position:absolute;left:172.71px;top:560.68px" class="cls_005">Ms. Vedavati</div>
  125.             <div style="position:absolute;left:172.71px;top:568.99px" class="cls_005">Revenue Officer</div>
  126.             <div style="position:absolute;left:172.71px;top:577.30px" class="cls_005">BBMP Office, Mayohall</div>
  127.             <div style="position:absolute;left:172.71px;top:585.61px" class="cls_005">MG Road</div>
  128.             <div style="position:absolute;left:172.71px;top:593.92px" class="cls_005">Bangalore-</div>
  129.             <div style="position:absolute;left:172.71px;top:602.23px" class="cls_005">Ph:080-22975832 Mob:9449637772</div>
  130.         </div>
  131.         <div style="position:absolute;top:851px;width:595px">
  132. </body>
  133. </html>
  134.  
This xml has some user defined tags (actuallaly this is an html wat i get when pdf is converted, for my project purpose i save it has xml) such as
span.cls_002{ font-family:Arial,serif;font-size:22px;color:rgb(51,51,51);font-weight:bold;font-style:normal}
div.cls_002{font-family:Arial,serif;font-size:22px;color:rgb(51,51,51);font-weight:bold;font-style:normal}
span.cls_004{font-family:Arial,serif;font-size:12px;color:rgb(51,51,51);font-weight:normal;font-style:normal}

inside div tag <div style="position:absolute;left:64.71px;top:389.33px " class="cls_003"> or span tag i hav an attribute class=" cls_002" or cls_003 so on

THis cls_003 is defined by span.cls_003{ font-family:Arial,serif;font-size:22px;color:rgb(51,51,51);font-weight:bold;font-style:normal}
i.e cls_003 takes the value within braces i.e font-family:Arial,serif;font-size:22px;color:rgb(51,51,51);font-weight:bold;font-style:normal, this substitution happens atomatically in html , whereas not in xml.


Now i need an xsl such tat this class="cls_002" or class="cls-003" gets replaced by specific user defined things .....................
i.e class=""cls_002" should gets replaced by the value inside the braces in span.cls_002 i.e class attribute should be like class="font-family:Arial,serif;font-size:22px;color:rgb(51,51,51);font-weight:bold;font-style:normal" n this replacement shld be done automatically by xsl code

Similarly for class="cls_003".....

The values of span.cls_002{------} or div.cls_002{-------------} may change , so my xsl has to dynamically substitute the attribute value for class i.e class="cls_002" shld get replaced with wat is defined in span.cls_002 dynamically

If any more clarification required pls inform

Thank u
May 7 '09 #1
8 2214
Can anyone pls provide me xsl code for displaying this xml data in browser using xslt , the formatting of data shld should be correct i.e it should be like how it will be when we save it and run as html, this is html i get when pdf is converted to html, i save html as xml , i use the converter for this purpose http://www.quick-pdf.com/PDF2HtmlSetup.exe

Thank u

Pls help Needed for my B.E final year project urgent
May 7 '09 #2
jkmyoung
2,057 Expert 2GB
I'm really not sure what you're trying to do. Are you letting the CSS do it's work?

Or are you migrating to an environment where CSS is not available?
May 7 '09 #3
i need an xsl code for the above xml such tat data gets displayed in the browser with proper formatting
May 7 '09 #4
jkmyoung
2,057 Expert 2GB
Uh.. yeah. Try removing the <?xml-stylesheet type="text/xsl" href="ch1.xsl"?> from the top and see what you get.
May 7 '09 #5
thx for ur reply .... but it doesnot work ....
Pls help me out .... provide some idea about how to do it ..
May 7 '09 #6
jkmyoung
2,057 Expert 2GB
How does it not work? What difference are you seeing in your output compared to your expect result? What browser are you using?
May 7 '09 #7
i am using ie 6 . when i save it as html i get the proper format, same as in pdf file. When i save it as xml and use xsl to diplay the same data ithe data gets overlapped. I need an xsl code such tat the data gets displayed wit the format as in pdf .
May 8 '09 #8
jkmyoung
2,057 Expert 2GB
Ah, the problem isn't so much not having an xsl, it's the overall design of the page. Everywhere, position:absolute; is used, without the writer having bothered to check whether the fields would overlap.

Please check this page for an example of how to properly set up the 2 columns. http://www.456bereastreet.com/lab/de...slayout/2-col/
In this case they call the 2 columns, main and side bar, although you should call yours something else.

Also, did you intend for your image to be in the background?
May 8 '09 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Wilson Wu | last post by:
hi, how can i use xslt to transform xml data into excel worksheet ? XML file : <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="test5.xsl"?> <dataroot...
4
by: XML newbie: Urgent pls help! | last post by:
I am using VB.Net. My program is to connect to a remote IPAddress. Once, it verifies the login information it should display the SessionID and enable some button . I appreciate your help and thanku...
4
by: gouranga | last post by:
Sablotron keeps giving an error (non-XSL instruction) on the line with this code: <xsl:result-document href="slideshow/index.html" format="html"> Is this implemented in Sablotron? It's quite...
0
by: Umagowder | last post by:
All I have my class serialised correctly. I have to apply style sheet to that data and display it in some other format. Everything works fine,I can not read the following xml tag, ...
3
by: Mark | last post by:
I'd like an inexpensive tool that can create moderately complex XSLT files based on the mappings from one XML schema to another. I would hope that the user could click and drag attributes from one...
2
by: Arun dudee | last post by:
i have make a webpage on which i have t makes some hyerlinks on left of page and then on main page i have have a image on top of page and then below it some text. what i ahve to do is that these...
2
by: Ch Pravin | last post by:
Hi All: I am having the following xml which i need to convert to excel using xslt. Please help me out. Afghanistan.xml <?xml version="1.0" encoding="utf-16"?> <Languages...
4
by: saritha2008 | last post by:
Hi, Iam working on converting one of xml file to other form of xml using XSLT. As part of this, I need to count the no. of "component" nodes in the xml file given below. If there is only one...
1
by: manugm1987 | last post by:
<p class=MsoNormal> <b style='mso-bidi-font-weight:normal'> <span style='font-size:12.0pt;line-height:115%'>Hello </span> </b> <i style='mso-bidi-font-style: normal'> <span...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.