fatty- / daisy-pipeline

Automatically exported from code.google.com/p/daisy-pipeline
0 stars 0 forks source link

add an "xml-peek" XProc step to Calabash #269

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Sometimes it's useful to parse an XML element only until a specific event, e.g. 
only know the root namespace (for type detection). It would be useful to have 
this available as a custom XProc step in Calabash.

Original issue reported on code.google.com by rdeltour@gmail.com on 14 Feb 2013 at 1:14

GoogleCodeExporter commented 9 years ago
The Web UI does this for determining media types, maybe the code can be reused: 
https://github.com/daisy-consortium/pipeline-webui/blob/master/app/utils/Content
Type.java

Original comment by josteinaj@gmail.com on 14 Feb 2013 at 1:15

GoogleCodeExporter commented 9 years ago
...and in mediatype-detect, the root namespace is retrieved for that exact 
purpose (type detection). Its disadvantage is that is has to load the entire 
XML file, so it would be good to provide a Java implementation to override it 
when using the framework.

Original comment by josteinaj@gmail.com on 20 Jun 2013 at 2:43