GHemis / xml-dir-listing

Automatically exported from code.google.com/p/xml-dir-listing
Apache License 2.0
0 stars 0 forks source link

Adding custom Text to XML-Output #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm afraid that this is not the right way to ask this, but I didn't find a
possiblity to contact the developers.

I want to ask if you could include a possiblity to add a custom line to the
xml-output, like

<?xml-stylesheet type="text/xsl" href="xml-tree.xslt"?>

for xslt-transformations.

Best way to do this would be a simple option for the Command Line, like
-insert "[Custom Line]" -position 2 or something like this.

Thanks a lot!

Original issue reported on code.google.com by kaimain...@gmail.com on 7 Mar 2009 at 7:21

GoogleCodeExporter commented 8 years ago
Hi,

This is the right place for feature requests!

Not sure about adding this as a feature yet as I don't have a massive amount of 
time
to work on this project at the moment.

There are other (and possibly better) ways of achieving this though.

* Search and replace on XML file, this is easy to do if you are using the 
program via
Apache Ant or as part of a shell script.
* Don't use the xml-stylesheet processing instruction and instead pass the XML 
file
through an XSLT processor to get a proper HTML document. This would offer better
cross browser support for the resulting HTML.

If you have a little time to learn it I'd definitely recommend looking into 
using
this program as part of Apache Ant. This would make it very easy to automate
generation of the directory listing xml, then pass through an XSLT processor 
and save
out a HTML document at the other end.

http://ant.apache.org/

Thanks,

Matt

Original comment by monsieur...@gmail.com on 19 Mar 2009 at 1:53

GoogleCodeExporter commented 8 years ago
Hi,
thanks a lot for the advice. I will definitely look into this as soon as I've
finished writing my exams.

I'm using your tool to keep informed of what I've saved on my external HDD: XML 
is
automatically saved to my webspace and as of now it's being transformed to a
relational DB and presented as HTML by PHP. I just figured it would be easier to
transform XML directly via XSLT.

Original comment by kaimain...@gmail.com on 19 Mar 2009 at 3:34

GoogleCodeExporter commented 8 years ago

Original comment by monsieur...@gmail.com on 8 Oct 2009 at 3:07