[
https://issues.apache.org/jira/browse/WODEN-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551489
]
Arthur Ryman commented on WODEN-188:
------------------------------------
Tomi, I core problem is that XSLT doesn't "know" the URI of the input document
it's processing, i.e. it's just a locationless stream of bytes, so therefore
you can't compute relative URIs. Can you in fact determine at runtime what
basedir is? I thought this was just an Ant-ism.
Does the wsdl-viewer.xsl assume that it is running in the same directory as the
WSDL?
At W3C, we ran into a similar problem using XSLT to manage the Test Suite. The
solution we came up with was to seed each directory with a special file that
included the relative URI of the WSDL file we were processing, relative to the
parent directory used by the Ant task. We pass the parent directory in as a
param and then iterate over the subdirectories, processing these special
*.filename documents which identify the WSDL. So perhaps you could use this and
write a little "laucher" XSLT that takes this filename as input and then calls
wsdl-viewer.xsl using the absolute URI of the WSDL file, e.g. passing it as a
param?
e.g. for a *.filename file see:
http://dev.w3.org/cvsweb/2002/ws/desc/test-suite/documents/good/Chameleon-1G/getBalance.filename
Here is an example of using *.filename files:
<target name="evaluate-Woden" depends="canonicalize-Woden" description="Compare
Woden/*/*.wsdlcm results with the Baseline, reporting the results as
*.results.xml.">
<xslt style="wsdlcm-compare.xsl" extension=".results.xml"
basedir="../documents/good" destdir="Woden" includes="*/*.filename" force="yes">
<param name="implementation" expression="Woden" />
</xslt>
</target>
> WSDL Viewer Fails on W3C Test Suite
> -----------------------------------
>
> Key: WODEN-188
> URL: https://issues.apache.org/jira/browse/WODEN-188
> Project: Woden
> Issue Type: Bug
> Affects Versions: M8
> Reporter: Arthur Ryman
> Assignee: Tomi Vanek
> Fix For: M8
>
>
> I get errors running wsdl-viewer against the W3C Test Suite. See
> wsdl-viewer-test/build.xml to run the tests.
> It looks like the stylesheet is not resolving relative references corrected.
> The references should be resolved relative to the WSDL file, not the XSLT
> file.
> Buildfile: E:\workspaces\WSD2\woden\wsdl-viewer-test\build.xml
> w3c-html:
> [mkdir] Created dir: E:\workspaces\WSD2\woden\wsdl-viewer-test\html
> [xslt] Transforming into E:\workspaces\WSD2\woden\wsdl-viewer-test\html
> [xslt] Processing
> E:\workspaces\WSD2\woden\downloads\w3c\documents\bad\Binding-1B\BadBinding.wsdl
> to
> E:\workspaces\WSD2\woden\wsdl-viewer-test\html\bad\Binding-1B\BadBinding.html
> [xslt] Loading stylesheet
> E:\workspaces\WSD2\woden\wsdl-viewer\wsdl-viewer.xsl
> [xslt] Processing
> E:\workspaces\WSD2\woden\downloads\w3c\documents\bad\Binding-2B\Echo.wsdl to
> E:\workspaces\WSD2\woden\wsdl-viewer-test\html\bad\Binding-2B\Echo.html
> [xslt] Processing
> E:\workspaces\WSD2\woden\downloads\w3c\documents\bad\Binding-3B\NonUniqueBinding-Extended.wsdl
> to
> E:\workspaces\WSD2\woden\wsdl-viewer-test\html\bad\Binding-3B\NonUniqueBinding-Extended.html
> [xslt] E:\workspaces\WSD2\woden\wsdl-viewer\wsdl-viewer.xsl:751:14:
> Warning! Can not load requested doc:
> E:\workspaces\WSD2\woden\wsdl-viewer\NonUniqueBinding.wsdl (The system cannot
> find the file specified)
> [xslt] Processing
> E:\workspaces\WSD2\woden\downloads\w3c\documents\bad\Binding-3B\NonUniqueBinding.wsdl
> to
> E:\workspaces\WSD2\woden\wsdl-viewer-test\html\bad\Binding-3B\NonUniqueBinding.html
> [xslt] Processing
> E:\workspaces\WSD2\woden\downloads\w3c\documents\bad\Binding-4B\Echo.wsdl to
> E:\workspaces\WSD2\woden\wsdl-viewer-test\html\bad\Binding-4B\Echo.html
> [xslt] Processing
> E:\workspaces\WSD2\woden\downloads\w3c\documents\bad\Binding-5B\Binding.wsdl
> to E:\workspaces\WSD2\woden\wsdl-viewer-test\html\bad\Binding-5B\Binding.html
> [xslt] Processing
> E:\workspaces\WSD2\woden\downloads\w3c\documents\bad\Binding-6B\Binding.wsdl
> to E:\workspaces\WSD2\woden\wsdl-viewer-test\html\bad\Binding-6B\Binding.html
> [xslt] Processing
> E:\workspaces\WSD2\woden\downloads\w3c\documents\bad\Binding-7B\Binding.wsdl
> to E:\workspaces\WSD2\woden\wsdl-viewer-test\html\bad\Binding-7B\Binding.html
> [xslt] Processing
> E:\workspaces\WSD2\woden\downloads\w3c\documents\bad\BindingFault-1B\BindingFault.wsdl
> to
> E:\workspaces\WSD2\woden\wsdl-viewer-test\html\bad\BindingFault-1B\BindingFault.html
> [xslt] Processing
> E:\workspaces\WSD2\woden\downloads\w3c\documents\bad\BindingFaultReference-1B\BindingFaultReference.wsdl
> to
> E:\workspaces\WSD2\woden\wsdl-viewer-test\html\bad\BindingFaultReference-1B\BindingFaultReference.html
> [xslt] Processing
> E:\workspaces\WSD2\woden\downloads\w3c\documents\bad\BindingFaultReference-2B\BindingFaultReference.wsdl
> to
> E:\workspaces\WSD2\woden\wsdl-viewer-test\html\bad\BindingFaultReference-2B\BindingFaultReference.html
> [xslt] Processing
> E:\workspaces\WSD2\woden\downloads\w3c\documents\bad\BindingFaultReference-3B\BindingFaultReference.wsdl
> to
> E:\workspaces\WSD2\woden\wsdl-viewer-test\html\bad\BindingFaultReference-3B\BindingFaultReference.html
> [xslt] Processing
> E:\workspaces\WSD2\woden\downloads\w3c\documents\bad\BindingMessageReference-1B\BindingMessageReference.wsdl
> to
> E:\workspaces\WSD2\woden\wsdl-viewer-test\html\bad\BindingMessageReference-1B\BindingMessageReference.html
> [xslt] Processing
> E:\workspaces\WSD2\woden\downloads\w3c\documents\bad\BindingMessageReference-2B\BindingMessageReference.wsdl
> to
> E:\workspaces\WSD2\woden\wsdl-viewer-test\html\bad\BindingMessageReference-2B\BindingMessageReference.html
> [xslt] Processing
> E:\workspaces\WSD2\woden\downloads\w3c\documents\bad\BindingMessageReference-3B\BindingMessageReference.wsdl
> to
> E:\workspaces\WSD2\woden\wsdl-viewer-test\html\bad\BindingMessageReference-3B\BindingMessageReference.html
> [xslt] Processing
> E:\workspaces\WSD2\woden\downloads\w3c\documents\bad\BindingOperation-1B\BindingOperation.wsdl
> to
> E:\workspaces\WSD2\woden\wsdl-viewer-test\html\bad\BindingOperation-1B\BindingOperation.html
> [xslt] Processing
> E:\workspaces\WSD2\woden\downloads\w3c\documents\bad\Chameleon-1B\getBalance.wsdl
> to
> E:\workspaces\WSD2\woden\wsdl-viewer-test\html\bad\Chameleon-1B\getBalance.html
> [xslt] Processing
> E:\workspaces\WSD2\woden\downloads\w3c\documents\bad\Chameleon-2B\getBalance.wsdl
> to
> E:\workspaces\WSD2\woden\wsdl-viewer-test\html\bad\Chameleon-2B\getBalance.html
> [xslt] E:\workspaces\WSD2\woden\wsdl-viewer\wsdl-viewer.xsl:751:14:
> Warning! Can not load requested doc:
> E:\workspaces\WSD2\woden\wsdl-viewer\accountInfo.xsd (The system cannot find
> the file specified)
> BUILD FAILED
> E:\workspaces\WSD2\woden\wsdl-viewer-test\build.xml:44:
> java.lang.StackOverflowError
> Total time: 10 seconds
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]