You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As an experiment in space/processing savings and since every browser supports XLM stylesheets. I tried referencing the XML style sheet from the standard name XML and letting the browser make the html name table itself. I needed to update the stylesheet a little since it was not producing very valid HTML, divs in the head block, a paragraph element in the table, etc... I also added some javascript to do the link processing (what the python script does). I found that this works quite well. Adopting the style sheet reference and letting the browsers do their thing could simplify the standard name publishing to be only making a new XML and none of the other steps. We would save a significant amount of space not having the preprocessed standard name html tables in github.
The following line was added to the standard name XML to do this:
Github strips that attribute in these issues so I cannot show a demo.
Like the KWIC indexer example I made, we could put a "download HTML" link/button in that generated template so the people can actually download the generated HTML for offline use.
The text was updated successfully, but these errors were encountered:
That's a very good idea, which saves redundancy and space. It's remarkable to see, and it's pretty fast, but slower than loading the ready-made HTML. Would it be faster on the GitHub site, do you think? If it's bound to be discernibly slower, perhaps we ought to keep the current HTML only as such, since that's looked at much more often than all the old versions, for which we could use this on-the-fly method.
As an experiment in space/processing savings and since every browser supports XLM stylesheets. I tried referencing the XML style sheet from the standard name XML and letting the browser make the html name table itself. I needed to update the stylesheet a little since it was not producing very valid HTML, divs in the head block, a paragraph element in the table, etc... I also added some javascript to do the link processing (what the python script does). I found that this works quite well. Adopting the style sheet reference and letting the browsers do their thing could simplify the standard name publishing to be only making a new XML and none of the other steps. We would save a significant amount of space not having the preprocessed standard name html tables in github.
The following line was added to the standard name XML to do this:
For my own convenience, I reused the KWIC repository on my own github account for this experiment.
Here is the example on my own site: https://www.andrewbarna.org/cf_kwic/cf-standard-name-table.xml
For the HTML links you just link to the XML:
To download the XML you would make the a tags have a download attribute:
Github strips that attribute in these issues so I cannot show a demo.
Like the KWIC indexer example I made, we could put a "download HTML" link/button in that generated template so the people can actually download the generated HTML for offline use.
The text was updated successfully, but these errors were encountered: