Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have a customer who asked me to make a website.
Now I have the basic website running (on joomla) but now he wants his pricelist pages displayed on there (seems reasonable)
How can i import import Excel file into as an array and display on html page with tags
Grtz,
Thomas
Edit:
perhaps something from pdf to html since I can create pdf files from it...
Excel saves spreadsheets in XML format, so you can use XSLT to transform your customer's spreadsheet into HTML. The Excel XML format is somewhat obtuse, but if you only need to grab certain pieces of critical data, it's a reasonable solution. Here's some information about the Excel XML format, though Googling will probably reveal more:
http://msdn.microsoft.com/en-us/library/aa140066%28office.10%29.aspx
And here's the W3C standard for XSL 1.0 (I doubt you would need 2.0 features, which are more complex, for this job):
http://www.w3.org/TR/xslt
XSLT is a declarative XML transformation language, which you would have to learn the fundamentals of for this job, but it's a very useful tool if you deal with XML generally, and the additional virtue of this solution is that it is repeatable (when the customer's data changes).
EDIT: Here's an XSLT tutorial, which is obviously a more friendly introduction to the language than the W3C standard:
http://www.w3schools.com/xsl/
If the price list only gets updated every now and again, can you not simply save the spreadsheet file as an HTML page from within Excel? This will give you some pretty nasty HTML (thanks MS), but it's a good starting point.
(As JollyMorphic points out, you can also transform Excel's XML, but that's quite heavy duty for what you appear to need).
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have some XBRL files converted into pdf. Now I want to develop a project that would automatically extract all the data from these files. The project would be developed in JAVA. I am unable to get any lead. Any suggestions regarding how to start the project would be very much appreciated as there is very limited information over the internet regarding this.
I would recommend trying to get the original XBRL (or iXBRL) files rather than use the generated PDFs.
XBRL was designed in the first place in order to be easily machine readable and in order to avoid having to reverse engineer printed documents or PDFs. Attempting to read PDFs means not leveraging the potential of XBRL and may lead to imprecisions and errors.
Then, if you can get these source files, I recommend using an XBRL processor that will take care of all the complexity for you. This will save a lot of time compared to use a raw XML processor. It is likely that there are XBRL libraries written for Java.
I am sorry not to be able to give you a better answer, but I hope this helps you get started.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I am building an html resume (with bootstrap tabs) but want to break the sections into separate parts for easy editing and repurposing.
For example, have the work experience data in one file, have education in another and link them to a tabbed html page, but also have the option to export to a docx or pdf. Have skills appear on the html version but not on the pdf export.
What would be the best architecture design to use? Would JSON be good or should I use PHP includes.
What about xml? or should I just maek it a mysql database and use PHP to pull that data (this seems like overkill for less than 1,000 words).
I would argue any of these will be an overkill for a small project. So I'd go placing it all in one html file.
If you want to automatically generate pdf or docs it's no more a html resume. So I won't answer generating part of the question.
As for html management you can use templating language, e.g. Nunjucks or Pug
It will allow you to include html files one in another; the downside is you'll have to setup a build tool like Gulp for this (which will require some basic Javascript knowledge and time).
Something which you need to consider is the format which you would be handing into potential employers.
If you are hoping to hand in a web page, you would probably want to "render" it and not hand in a piece of functioning code. The reason for this, is if the employer/recruiter is unable to open or correctly read the file, this will decrease your chances of getting the job dramatically. Not to mention many large companies use bots which read CV's for you, See this article which explains that matter all to you.
You would also want to consider what some companies/recruiters may think when they see CV.html in their email inbox. Some will think its a really smart and creative idea, others may think it is an incompatible file with their computer and may never open it. Leaving instructions on how to open the document may take time which the employer doesn't have.
I'm not saying its a ludicrous idea, I'm saying you need to properly plan it out. Personally, I would keep an online copy on my website, but I would also have an additional copy (Word document or PDF) which could be downloaded and accessed by those bots which I mentioned early.
In programming there are many ways to do the same thing, and it is entirely up to you and your abilities to find what is best.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
My intent to is to create documentation for our software project that is checked into our SCM system along with the source code.
These files can be spread among various sub-projects but I want to bring the documentation together so that, e.g. a page can include documentation on more than one sub-project at once. The viewer should not see a 'page per sub-project' - rather they see the documentation for the project and not the boundaries between sub-projects.
This documentation needs to load direct from a user's local PC in their browser, so I can't composite or transform XML files into a single HTML on a server.
First thing I would suggest to transform XML into another form would be XSLT http://www.w3schools.com/xsl/.
XSL stands for EXtensible Stylesheet Language, and is a style sheet language for XML documents.
XSLT stands for XSL Transformations. In this tutorial you will learn how to use XSLT to transform XML documents into other formats, like XHTML.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
How does one develop a software to read a proprietary file type without having that proprietary software. Something like what the open office folks did with MS Word (.doc) files. Open Office can read .doc files.
That might be easy if the proprietary software has an open source SDK to it, for example Adobe has the Flex open source SDK so it's possible to create flash (.swf) files without having Adobe Flash. But in the case of MS Word, which I believe had no open source SDK, how did the open office guys get it to read it.
Of course I'm using open office just as an example, but my question is general, how could one read a proprietary output file? What's the idea here? I know someone will say reverse engineering, but I don't think reverse engineering the entire software makes sense here (not that I know anything about that field yet) because the goal is not to create software that has the same functionalities. Is there a way to work with the output file only?
Any thoughts on this?
It's an iterative process:
Inspect the stream of raw bytes in the file and make a guess as to what they mean
Write code to verify the guess
See what goes wrong when you try to load the file
Repeat
You'll need a wide variety of test files, a lot of patience and large dollops of insight.
My experience is that it's pretty easy to handle the basics, but that complex file format features can be a pain to handle.
If you are lucky, at least some information on the file for example MS does has information on the doc file.
Other wise it is lot of work. basically you make a simple document save it, then make a small change, save it and compare the two. Eventually you can figure out the format.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I need to build a sitemap for my website.
The url will be "www.example.com/mysitemap.html".
I know that there are some tools that generate automatically an XML file that contains the
reachable URLs and also improve the SEO.
So my questions are:
How can I build this HTML page going from the generated XML? Or am I wrong and this kind of HTML page is built manually? If not, how do we integrate the XML and convert it to the website?
Thank you very much.
Regards.
If your site architecture is contained in a database (like a CMS) you can do something like Darkyo suggested.
However there are easier methods. There are many free services which crawl your site and create a sitemap
http://www.xml-sitemaps.com/ or http://sitemapdoc.com/ are some examples but the Internet is full of them. Just google "sitemap creator".
If you want to create your own script there is program called "php sitemap ng" at http://enarion.net/google/phpsitemapng . This can be a real good starting place.
If you run a content based site (like YouTube for example), just write a small script that reads your database and generates an XML file for each URL.
Put it as a cron job once every day/week. You can also ping Google/Yahoo/MSN etc. when your sitemap gets updated so they can pick your new sitemap and index the new URL's.
It really depends of how is programmatically build your website,
if your website is huge and reflects a db schema, the best thing
is to write a friendly url generator and store it to the db.
Thank to this system you'll be able to manage retrieve your sitemap easilly
Select CONCAT("http://mysite.com/article/",article.friendly_url) from article
But as I said it highly depends of your architecture / programming ....
Automatically is very hard. You can help though, by using correct semantics.
This will make Google pick up your site's structure better.
When your website consist of static pages you can create a sitemap yourself. If though it is generated with a database you can do this programmaticly. This won't be easy though if you have no experience.
If you use a CMS like Wordpress or Drupal or ... you probably can generate it with a plugin. Use Google for that!