Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
- xmlns:l="http://xproc.org/library"
- xmlns:cxo="http://xmlcalabash.com/ns/extensions/osutils"
- xmlns:pos="http://exproc.org/proposed/steps/os"
- xmlns:cx="http://xmlcalabash.com/ns/extensions"
- xmlns:c="http://www.w3.org/ns/xproc-step" version="1.0">
- <p:input port="source" primary="true" />
- <p:input port="parameters" kind="parameter" />
- <p:import href="library.xpl"/>
- <p:import href="http://xmlcalabash.com/extension/steps/library-1.0.xpl"/>
- <p:variable name="input-base" select="replace(base-uri(/*), '^(.*/)?([^/]+)$', '$1')"/>
- <p:variable name="input-name" select="concat(replace(base-uri(/*), '^(.*/)?([^/]+)(\.wadl)$', '$2'),'.json')"/>
- <p:variable name="output" select="concat(pos:cwd(),'/foobaz.json')"/>
- <cx:message>
- <p:with-option name="message" select="concat('output = ',$output)"/>
- </cx:message>
- <l:normalizeWadl name="normalizeWadl"/>
- <l:wadl2apiary-jsonx name="wadl2apiary"/>
- <l:jsonx2json name="json"/>
- <p:store method="text">
- <p:with-option name="href" select="$output" />
- </p:store>
- </p:declare-step>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement