xurizaemon / legolas

take the legislation, make a conversation
2 stars 3 forks source link

link directly into clause #15

Open xurizaemon opened 9 years ago

xurizaemon commented 9 years ago

linking directly into a paragraph / clause would be great

xurizaemon commented 9 years ago

@vrijlaarsdam i can't yet work out how to do this with XSL - am doing it in JS at the moment but that won't work for direct links - if you can get the XSL to make each <para> become <p id="#dlm111222-123"> then we can do this!

Maybe grab a sample .xml and .xsl and test out with a smaller XSL locally to demo

Search for XSL "generate-id" function, result of which should be consistent until the .xml is changed I believe. You can also make a counter in the XSL if that's not suitable, but whatever works for demo.