-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Wiki for Tips&Tricks? #2
Comments
A versioned HTML page that will be published on https://wendellpiez.github.io/XMLjellysandwich/ is probably better. In order to maintain the Wiki, every contributor needs commit rights to this repo. Patches to the HTML page, on the other hand, can be filed as pull requests by anyone. So maybe I should submit the initial page as a pull request… Maybe later today, unless you get ahead, Wendell. |
In an own-dogfood-or-vegetables-consuming fashion, we can also maintain the tips&tricks in an XML file and render it dynamically on https://wendellpiez.github.io/XMLjellysandwich/, using Saxon-JS! |
@gimsieke I am looking at old tickets ... this is such a good idea, I wish I knew who would use it besides us two. If you think the answer is someone, let's consider taking this up. (My SaxonJS experiments have paused, but I expect them to resume.) There are a number of intriguing models one could contemplate. (On a separate-but-related topic have you had experience processing Markdown in an XSLT context?) |
I don’t know who else uses XMLjellysandwich, but I have recommended to some people that they use it as a starting point for Saxon-JS projects. We can create a saxon-js-faq.xml somewhere in this repo, in a bespoke or off-the-shelf vocabulary. Questions/answers can be associated with different categories, such as “Form Elements”, “Javascript”, “Properties/Attributes”, or “Resource Loading”. I think we can use JATS Pumpkin, it has a I think we should render the JATS dynamically as HTML. The Q&A list can then be filtered for categories, and maybe we can think of other interactive XSLT operations. Full text search can be performed using XPath since the input won’t be so large that it necessitates an index. Other people like @namedgraph will probably contribute questions and answers, too. Regarding Markdown rendering, I don’t know of an XSLT that can readily be used. There are, however, some approaches:
|
@gimsieke all this sounds great. I have learned a huge amount about git-based dev in the last 24 months so we could perhaps move forward easily with something light-touch. We could do this in a branch, or indeed if there is utility in a live preview online, in the As for Markdown, really the question is an opener to a longer conversation about Markdown. I have quite a bit to say about that too: for OSCAL we built a kind of cheat "half-parser" to produce XHTML from (a smallish useful subset of) Markdown. However this is not a problem with a single solution and there is also no reason not to demo (every reason to demo) how to wire in commodity parsers such as One item for our page btw could be a list of links to other SaxonJS demos or applications. As you know such lists are no good (they grow stale) if they are not curated. But we could at least give it a chance and see how much interest there is. BTW (back to original concept) using the Wiki feature of this repo is also in order if you think it worthwhile. I simply have not had any bandwidth. 😎 But to be honest one of the things I like best about this architecture is the leave-it-and-come-back-later feature. |
I don’t currently have the bandwidth either, but maybe around Christmas I will. |
Sounds good, meanwhile free free to speak up about anything else you find thanks! |
This hint probably belongs into the core Saxon-JS documentation, but I was unable to find it there.
I developed a small application with a
textarea
. I was surprised to see that rendering its content would only give me the placeholder text that I put into the HTML source, rather than the text that was entered by the user. Then I remembered that I had the same issue with a program that I wrote with Saxon CE six (!) years ago. I looked up how I solved it: With@prop:value
. Then I read aboutixsl:get()
that is meant to replace the@prop:*
attributes. I figured out that I need to use something likeixsl:get(id('area1',ixsl:page()), 'value')
.I suggest that we use the Wiki of this repo in order to document hints like this, ideally pointing to projects where the techniques are being employed. (I’ll add my current tiny project to Github soon.)
The text was updated successfully, but these errors were encountered: