| XSLT: no stylesheet instruction? [message #513127] |
Mon, 08 February 2010 19:00  |
Gilbert Pilz Messages: 2 Registered: February 2010 |
Junior Member |
|
|
I'm using:
* Eclipse XSL Developer tools 1.0.2
* Eclipse Ganymede JEE
* "standard" JRE6 (C:\Program Files\Java\...)
* Windows XP
I've set up an XSLT to use the "JRE Default" processor to transform the WS-I Basic Profile 1.2 source XML into its human-readable HTML. The first few lines of the source file (BasicProfile-1.2.xml) look like this:
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Revision: 1.90 $ $Date: 2010/02/08 23:25:53 $ -->
<?xml-stylesheet type="text/xsl" href="ProfileDocToHtml-2.0.xsl"?>
when I run the transform I get this:
15:20:19,984 INFO [main] Main - javax.xml.transform.TransformerFactory=null
15:20:19,984 INFO [main] Main - java.endorsed.dirs=C:\Program Files\Java\jre6\lib\endorsed
15:20:19,984 INFO [main] Main - launchFile: C:\Documents and Settings\gpilz\My Documents\WS-I\.metadata\.plugins\org.eclipse.wst.xsl.jaxp.l aunching\launch\launch.xml
15:20:20,546 FATAL [main] Main - No embedded stylesheet instruction for file: file:/C:/Documents and Settings/gpilz/My Documents/WS-I/profiles/src/BasicProfile-1.2.xml
org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationExcepti on: No embedded stylesheet instruction for file: file:/C:/Documents and Settings/gpilz/My Documents/WS-I/profiles/src/BasicProfile-1.2.xml
at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProce ssorInvoker.transform(JAXPSAXProcessorInvoker.java:225)
at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProce ssorInvoker.transform(JAXPSAXProcessorInvoker.java:186)
at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.Main.main(Ma in.java:73)
Caused by: org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationExcepti on: No embedded stylesheet instruction for file: file:/C:/Documents and Settings/gpilz/My Documents/WS-I/profiles/src/BasicProfile-1.2.xml
at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProce ssorInvoker.transform(JAXPSAXProcessorInvoker.java:214)
... 2 more
The "No embedded stylesheet instruction" message confuses me because there is obviously a <?xml-stylesheet> directive.
FWIW XMLSpy 2008 (which I would dearly love to break away from) handles this transform without any problems.
- gp
|
|
|