03:18 -!- Harzilein [i=harzi@camelot.germanistik.fu-berlin.de] has joined #xml 03:18 < Harzilein> hi there 03:18 < Harzilein> harzi@tor:~$ cat lynx_bookmarks.html | tidy -n -q -asxhtml | awk '!flag && /^"); flag=1 } {print}' | xmlstarlet sel -t -c '//a' 03:18 < Harzilein> this works, but how can i make the bar appear as foobar now? 03:41 -!- mikeday [n=mikeday@60.224.50.129] has joined #xml 03:44 < W_work> erm what's awk doing in there? 03:44 < W_work> why not use some xpath or xslt util 03:44 < Harzilein> W_work: xmlstarlet _is_ an xslt/xpath utility 03:45 < W_work> ok, the what's still awk doing in there? 03:45 < W_work> *then 03:45 < Harzilein> W_work: the awk just strips the xmlns attribute which makes xmlstarlet behave in a weird way 03:45 < W_work> can't you use JUST xmlstarlet? 03:45 < W_work> oh 03:45 < W_work> ok, why can't you use a *good* xslt processor then? 03:45 < W_work> one that at least handles fairly standard things such as namespaces :) 03:46 < Harzilein> i think i might be able to get xmlstarlet to work without that hack but i don't know how... this way i can just use the xpaths derived from xpather 03:46 < W_work> as for your question, it's probably a very simple xslt template using value-of 03:46 < Harzilein> W_work: sel just creates an xslt template 03:46 < Harzilein> i'll pastebin it, mom 03:47 < Harzilein> should've just pastebinned the xslt in the first place 03:48 < Harzilein> http://pastebin.ca/482488 03:49 < Harzilein> now what should i do to get nice pairs of ? 03:49 -!- waloo_ [n=waloo@ip-185.net-82-216-250.rev.numericable.fr] has joined #xml 03:49 < Harzilein> i can match them separately, but i don't know how to have them appear as pairs 03:50 < W_work> something like 03:50 < W_work> not so hot on xslt myself 03:51 < waloo_> Harzilein: can you ask again your question ? 03:52 < Harzilein> waloo_: i have some xhtml and want right now i'm using this stylesheet: 03:52 < Harzilein> http://pastebin.ca/482488 03:52 < Harzilein> waloo_: it works fine but i want to have the link texts and href attributes as pairs of , not as 03:53 < Harzilein> W_work: i don't get how the second value-of-select should depend on having the first one 03:53 < waloo_> ok 03:53 < W_work> Harzilein, you put it inside a for-each 03:53 < waloo_> 1 - why so much namespace decrations ? 03:54 < W_work> so the context is the a element 03:54 < Harzilein> waloo_: it was generated by xmlstarlet 03:54 < waloo_> 2 - write a template for / and a template for a 03:54 < waloo_> waloo_: hmm... how does that help? 03:55 < waloo_> 03:56 < waloo_> explaination : on / you tell to process all a n the document 03:56 < waloo_> on a template you produce your link and text element, getting information from @href and elemet's content 03:56 < waloo_> on thee "a" template... 03:57 < waloo_> well if you want to output well formed xml, you certainly need to insert a root tag around the 03:58 < waloo_> got it ? 04:00 -!- baku [n=b@ppp-225-5.20-151.libero.it] has quit [Read error: 60 (Operation timed out)] 04:06 < trekkit> Using jaxb and schema, does anyone know how I might use ID/IDREFS to create multiples instances for those tags of type xs:IDREF which are identical? Because at the moment multiple tags of type xs:IDREF just create a reference to a single object. 04:08 < W_work> hmm? 04:08 < W_work> that's the whole point of idrefs isn't it? 04:08 < W_work> it's a *reference* to the same 04:08 < W_work> I'm sure kk has an entry in his blog about it though 04:09 -!- mikeday [n=mikeday@60.224.50.129] has left #xml ["Leaving"] 04:09 < W_work> http://weblogs.java.net/blog/kohsuke/ 04:09 < W_work> from what I gather he's done most of the work on the JAXB RI, and he's up until lately been the most active on the JAXB-users mailing list 04:10 < W_work> http://weblogs.java.net/blog/kohsuke/archive/2005/08/pluggable_ididr.html 04:14 < trekkit> thanks ill take a look, im no expert on this thats for sure 04:20 < trekkit> maybe i shouldnt be using id/idref at all 04:22 -!- Randroid [n=gregory@static-72-91-82-26.tampfl.fios.verizon.net] has joined #xml 04:23 -!- waloo_ [n=waloo@ip-185.net-82-216-250.rev.numericable.fr] has quit ["Ex-Chat"]