Hello, 

A pipeline I had working under 2.2 generates an error
under 2.5.  I cannot understand why.  When I try the 
transforms individually, they appear to work.

The error I get is:

MessageError at xsl:template on line -1 of : 
Attribute match is not allowed on this element Error at xsl:template on line -1 of : 
xsl:template must have a name or match attribute (or both) 
Stack Traceorg.orbeon.oxf.common.OXFException: Error at xsl:template on line -1 of :
Attribute match is not allowed on this element
Error at xsl:template on line -1 of :
xsl:template must have a name or match attribute (or both)

A little background.  I am trying to provide some users some wyswig editing.
I take an xhtml file editing in Dreamweaver.  It has statements like 
  <td><xsl:value-of select="/root/preferences/copyright"/></td>
and more complicated ones that expect xml data from web services, etc.

I transform this xhtml to xsl, then back to xhtml with global and  
specific xml resources determined by the controller. When I take these
steps on the command line, there is no error, but the second transform 
is broken when done in this pipeline.

If anyone has suggestions, what to look for, appreciate it. 

Hank Ratzesberger
http://nees.ucsb.edu/


<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline";>

    <p:param name="instance" type="input"/>

[snip - generate filename of requested page - #file]

 <!-- Transform the xhtml into a stylesheet -->
 <p:processor uri="oxf/processor/xslt">
  <p:input name="config" href="oxf:/pre/preview.xsl"/>
  <p:input name="data" href="#file"/>
  <p:output name="data" id="xsl"/>
 </p:processor>

 <!-- Process generated xsl with xml data -->
 <p:processor uri="oxf/processor/xslt">
  <p:input name="config" href="#xsl"/>
  <p:input name="data" href="aggregate('root', /site-prefs.xml, #instance)"/>
  <p:output name="data" id="data"/>
 </p:processor>

 <!-- Deliver xhtml -->
 <p:processor uri="oxf/processor/xml-serializer">
  <p:input name="config">
   <config>
     <content-type>text/html</content-type>
     <public-doctype>//W3C//DTD XHTML 1.0 Strict//EN</public-doctype>
      
<system-doctype>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</system-doctype>
   </config>
  </p:input>
  <p:input name="data" href="#data"/>
 </p:processor>

</p:config>




-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to