Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <p:declare-step
- xmlns:p="http://www.w3.org/ns/xproc"
- xmlns:l="http://xproc.org/library"
- type="l:normalize-wadls"
- xmlns:c="http://www.w3.org/ns/xproc-step"
- version="1.0"
- name="normalize-wadls-step">
- <p:input port="source"/>
- <p:output port="secondary" primary="false" sequence="true"/>
- <p:output port="result" primary="true" >
- <p:pipe step="lists-files" port="result"/>
- </p:output>
- <p:input port="parameters" kind="parameter"/>
- <p:xslt name="lists-files">
- <p:input port="source">
- <p:pipe step="normalize-wadls-step" port="source"/>
- </p:input>
- <p:input port="stylesheet">
- <p:document href="classpath:/cloud/list-wadls.xsl"/>
- </p:input>
- <p:input port="parameters" >
- <p:pipe step="normalize-wadls-step" port="parameters"/>
- </p:input>
- </p:xslt>
- <p:for-each>
- <p:iteration-source select="//@href">
- <p:pipe step="lists-files" port="secondary"/>
- </p:iteration-source>
- <p:xslt name="normalize-wadl">
- <p:input port="source"/>
- <p:input port="stylesheet">
- <p:document href="classpath:/cloud/normalizeWadl/normalizeWadl.xsl"/>
- </p:input>
- <p:input port="parameters" >
- <p:pipe step="normalize-wadls-step" port="parameters"/>
- </p:input>
- </p:xslt>
- <p:store encoding="utf-8" indent="true"
- omit-xml-declaration="false">
- <p:with-option name="href" select="concat('target/generated-resources/xml/xslt',replace(base-uri(/*), '^(.*/)?([^/]+)$', '$2'))"/>
- </p:store>
- </p:for-each>
- </p:declare-step>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement