Skip Menu |
 

This queue is for tickets about the XML-LibXML CPAN distribution.

Report information
The Basics
Id: 117923
Status: resolved
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: jidanni [...] jidanni.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: add example of how to create a simple HTML page
Date: Sat, 17 Sep 2016 21:10:09 +0800
To: bug-XML-LibXML [...] rt.cpan.org
From: 積丹尼 Dan Jacobson <jidanni [...] jidanni.org>
Download (untitled) / with headers
text/plain 207b
In /usr/share/doc/libxml-parser-perl/examples there are a lot of examples, all except one for how to create a simple Hello_World.html page from scratch. One with oh, a link, a img tag, a paragraph, a list.
Download (untitled) / with headers
text/plain 768b
Hi Dan, On Sat Sep 17 09:10:24 2016, jidanni@jidanni.org wrote: Show quoted text
> In /usr/share/doc/libxml-parser-perl/examples there are a lot of > examples, all except one for how to create a simple Hello_World.html > page from scratch. > > One with oh, a link, a img tag, a paragraph, a list.
This sounds like a commendable goal which I'd like to work on. That put aside: 1. The contents of the /usr/share/doc/** are specific to the Linux distribution's downstream and not directly under our control. Please make sure the problem exists in the CPAN tarballs on https://metacpan.org/ as well before reporting it. 2. libxml-parser-perl belongs to https://metacpan.org/release/XML-Parser - not to XML-LibXML. With which CPAN distro do you have an issue? Regards, -- Shlomi Fish
Subject: Re: [rt.cpan.org #117923] add example of how to create a simple HTML page
Date: Sat, 17 Sep 2016 22:59:13 +0800
To: "Shlomi Fish via RT" <bug-XML-LibXML [...] rt.cpan.org>
From: 積丹尼 Dan Jacobson <jidanni [...] jidanni.org>
Download (untitled) / with headers
text/plain 317b
All I know is here on Debian I do $ man XML::LibXML and on that man page there are tons of sub man pages mentioned, all of which surely contain all the info on how to make a humble HTML page from scratch, however one must be smart to connect all the info together and figure it out as there are no complete examples.
Download (untitled) / with headers
text/plain 651b
Hi Dan, On Sat Sep 17 10:59:24 2016, jidanni@jidanni.org wrote: Show quoted text
> All I know is here on Debian I do > $ man XML::LibXML > and on that man page there are tons of sub man pages mentioned, > all of which surely contain all the info on how to make a humble HTML > page from scratch, however one must be smart to connect all the info > together and figure it out as there are no complete examples.
Sigh. You'd better know what you are asking about and where to look for examples for XML::LibXML (and make sure it's not Debian-specific). Anyway, I'll try to get to working on the "creating-an-HTML-page from scratch" example, time and interest permitting.
Subject: Re: [rt.cpan.org #117923] add example of how to create a simple HTML page
Date: Sat, 17 Sep 2016 23:19:28 +0800
To: "Shlomi Fish via RT" <bug-XML-LibXML [...] rt.cpan.org>
From: 積丹尼 Dan Jacobson <jidanni [...] jidanni.org>
Thanks.
Download (untitled) / with headers
text/plain 336b
On Sat Sep 17 11:19:49 2016, jidanni@jidanni.org wrote: Show quoted text
> Thanks.
Hi Dan! Please let me know if you like the example I added here - https://github.com/shlomif/perl-XML-LibXML/blob/add-create-HTML-document-example--rt-117923/example/create-sample-html-document.pl . If so, I can merge it into the master branch and mint a new release.
Subject: Re: [rt.cpan.org #117923] add example of how to create a simple HTML page
Date: Sun, 18 Sep 2016 06:25:34 +0800
To: "Shlomi Fish via RT" <bug-XML-LibXML [...] rt.cpan.org>
From: 積丹尼 Dan Jacobson <jidanni [...] jidanni.org>
Download (untitled) / with headers
text/plain 136b
Thank you. Also show how to add a doctype, e.g. 4.01 strict... and: please make a additional second version, *no subroutines allowed*.
Subject: Re: [rt.cpan.org #117923] add example of how to create a simple HTML page
Date: Sun, 18 Sep 2016 06:27:11 +0800
To: "Shlomi Fish via RT" <bug-XML-LibXML [...] rt.cpan.org>
From: 積丹尼 Dan Jacobson <jidanni [...] jidanni.org>
Also show how to turn on indenting/pretty printing. Thanks.
Download (untitled) / with headers
text/plain 640b
On Sat Sep 17 18:25:49 2016, jidanni@jidanni.org wrote: Show quoted text
> Thank you. > Also show how to add a doctype, e.g. 4.01 strict... and:
I'll try to see about it. Show quoted text
> > please make a additional second version, *no subroutines allowed*.
Sorry, but I'm not going to do it out of my own volition free-of-charge. You have three options the way I see it: 1. Pay me 1,000 U.S. dollars for my trouble using PayPal in advance - see http://www.shlomifish.org/meta/donate/ . 2. Do the work yourself and send me a pull-request for a new file. 3. Learn to live with abstractions and accept the status quo. Hopefully one of them will be acceptable to you.
Download (untitled) / with headers
text/plain 149b
On Sat Sep 17 18:27:24 2016, jidanni@jidanni.org wrote: Show quoted text
> Also show how to turn on indenting/pretty printing. Thanks.
I'll try to see what I can do.
Subject: Re: [rt.cpan.org #117923] add example of how to create a simple HTML page
Date: Mon, 19 Sep 2016 08:10:13 +0800
To: "Shlomi Fish via RT" <bug-XML-LibXML [...] rt.cpan.org>
From: 積丹尼 Dan Jacobson <jidanni [...] jidanni.org>
Download (untitled) / with headers
text/plain 162b
OK but please do add a note that for even creating such a small HTML file like this, it would be much more complicated to do without the subroutines. (My guess.)
Subject: Re: [rt.cpan.org #117923] add example of how to create a simple HTML page
Date: Wed, 21 Sep 2016 05:27:13 +0800
To: "Shlomi Fish via RT" <bug-XML-LibXML [...] rt.cpan.org>
From: 積丹尼 Dan Jacobson <jidanni [...] jidanni.org>
Also add a validation step, if possible. Thanks.
Subject: Re: [rt.cpan.org #117923] add example of how to create a simple HTML page
Date: Wed, 21 Sep 2016 05:34:23 +0800
To: "Shlomi Fish via RT" <bug-XML-LibXML [...] rt.cpan.org>
From: 積丹尼 Dan Jacobson <jidanni [...] jidanni.org>
(I thought not using subroutines would be as easy as in XML::TreePP.)
Download (untitled) / with headers
text/plain 431b
Hi! Sorry for the late response but it appears that you are far too demanding (like a friend I talked with told me - it seems you are trying to get us to write your schoolwork for you). So I'm going to close this bug and merge the branch I created, and if you want, you can send me pull requests with additional features in the example (it can be part of https://hacktoberfest.digitalocean.com/ too). Sorry! Regards, -- Shlomi
Subject: Re: [rt.cpan.org #117923] add example of how to create a simple HTML page
Date: Sun, 16 Oct 2016 07:14:26 +0800
To: "Shlomi Fish via RT" <bug-XML-LibXML [...] rt.cpan.org>
From: 積丹尼 Dan Jacobson <jidanni [...] jidanni.org>
OK.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.