<tiddlers>
<tiddler>
<title>MyTitle</title>
<text>Text…</text>
…
</tiddler>
</tiddlers>
<breakfast_menu>
<food>
<name>Belgian Waffles</name>
<price>$5.95</price>
<description>
Two of our famous Belgian Waffles with plenty of real maple syrup
</description>
<calories>650</calories>
</food>
<food>
<name>Strawberry Belgian Waffles</name>
<price>$7.95</price>
<description>
Light Belgian waffles covered with strawberries and whipped cream
</description>
<calories>900</calories>
</food>
<food>
<name>Berry-Berry Belgian Waffles</name>
<price>$8.95</price>
<description>
Belgian waffles covered with assorted fresh berries and whipped cream
</description>
<calories>900</calories>
</food>
<food>
<name>French Toast</name>
<price>$4.50</price>
<description>
Thick slices made from our homemade sourdough bread
</description>
<calories>600</calories>
</food>
<food>
<name>Homestyle Breakfast</name>
<price>$6.95</price>
<description>
Two eggs, bacon or sausage, toast, and our ever-popular hash browns
</description>
<calories>950</calories>
</food>
</breakfast_menu>
<object width="100%" height="930" data="file:///C:\Data\batches\networkcheck.txt"></object>
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/8201341d-59b4-4b7c-9d0b-77d7b6a85177%40googlegroups.com.
Hi Flibbles,I'd certainly use such a plugin! The perspective of retrieving data and document chunks from XML with such powerful xpath-like filters is quite exciting. Also I don't forget that XHTML is an XML instance...Don't hesitate to ask if you want early feeback!Cheers,
Xavier.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/6516629e-6a37-41b1-9bfe-a28f56acabdb%40googlegroups.com.
<$tiddler tiddler="myRecipe.xml">
<$xsl for-each="/recipe/ingredients/ingredient">
<<xmlNode>>
</$xsl>
</$tiddler>
Hi Flibbles,Thanks a lot for sharing! Having dealt with much XSLT in a previous life, I planned to make useful comments, but now that I've seen your approach, I've only this one: this is brilliant!If you eventually make a filter (I vote for [xpath[]]) then, would the current behaviour of <$xsl variable=mynode foreach="/mypath/to/a/node"> be different from <$list filter=[xpath["/mypath/to/a/node"]] variable=mynode > ?By the way, it seems that I would use instructions on how to test the widget with a custom XML file, aside Demo.xml: I tried to surround a transform with <$tiddler tiddler="mycustomxml"> to no avail.Cheers,-- Xavier.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/6516629e-6a37-41b1-9bfe-a28f56acabdb%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/fb4defb4-2287-470f-a951-e7719f09b4b4%40googlegroups.com.
[local-name()='make']/[local-name()='your']/
[local-name()='paths']/
[local-name()='like']/
[local-name()='this']
.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/41ba7ea9-0477-4409-86fe-35f7b2167a6b%40googlegroups.com.
<ul>
<$xpath xmlns:onix="http://ns.editeur.org/onix/3.0/reference"
xmlns:ns4="http://www.w3.org/1999/xhtml"
for-each="/onix:ONIXMessage/onix:Product/*/onix:Text/ns4:p/text()"
variable="foo">
<li><<foo>></li>
</$xpath>
</ul>
Okay. I think I found the proper solution. I have examples and short documentation here. Basically, when elements have namespaces, whether explicit or default, the xpath wants a prefix to go with it. ...
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/dd7264cc-7dd6-4a3f-8417-ef1367042404%40googlegroups.com.
XPath defines QNames without a prefix to match only elements in the null namespace. There is no way in XPath to pick up the default namespace as applied to a regular element reference (e.g.,p[@id='_myid']
forxmlns='http://www.w3.org/1999/xhtml'
). To match default elements in a non-null namespace, you either have to refer to a particular element using a form such as['namespace-uri()='http://www.w3.org/1999/xhtml' and name()='p' and @id='_myid']
(this approach works well for dynamic XPath's where the namespaces might not be known) or use prefixed name tests, and create a namespace resolver mapping the prefix to the namespace.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/b74da421-a4ff-45b6-8258-dd3c31d1e10f%40googlegroups.com.
Tony: That'd be great. I built this so XML could act like super-data-tiddlers. So that's what it's mostly good at solving right now. But I'd love it if this plugin became the answer for other problem, though I may need more feedback on such use-cases to determine how to elaborate tw5-xml.
Damon: You're welcome to go ahead. I think the importer and the <$xpath> are locked down. Though I'm still in "rapid prototyping" mode. It's all pretty slow and buggy at the moment. If you do go ahead, let me know in what ways tw5-xml doesn't address your needs. I'd like it to be the XML solution for Tiddlywiki5.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/e0580ea6-da98-456d-8457-f143c6c2b096%40googlegroups.com.
<$xpath for-each="/document/text">
!!Document
<$css for=each=".classname > p" variable="paragraph">
<<paragraph>>
</$css>
</$xpath>