Hank,
From the latest CVS doc, here is the current algorithm to determine the content type of the input file:
The URL generator operates in several modes depending on the content type of the source document. The content type is determined according to the following priorities:
1. Use the content type in the content-type element of the configuration if force-content-type is set to true.
2. Use the content type set by the connection (for example, the content type sent with the document by an HTTP server), if any. Note that when using the oxf: or file: protocol, the connection content type is never available. When using the http: protocol, the connection content type may or may not be available depending on the configuration of the HTTP server.
3. Use the content type in the content-type element of the configuration, if specified.
4. Use application/xml.
If you don't specify any content type in your case, the resulting content type should be application/xml, and the file should be parsed as an XML file.
Can you put a debug attribute on the output of your URL generator to make sure this is the case?
-Erik
Hank Ratzesberger wrote:
Has the behavior of url-generator changed in 2.5, is the 'content-type' and 'force-content-type' something new?
I think this is my problem, I am using url-generator to "load" and file named "*.html"
however, it must be _interpreted_ as xhtml/xml and not altered by tidy, etc.
This line is from my 2.2 xpl model, but I am not sure what it should look like in 2.5.
<p:processor name="oxf:url-generator">
<p:input name="config" href="aggregate('config', #instance#xpointer(concat( 'oxf:/pre/', /form/directory, '/', /form/file, '.html' )))"/>
<p:output name="data" id="file"/>
</p:processor>
I think I'm one step away, but I thought I wouldn't leave the prior request open.
Thank you, Hank
----- Original Message ----- Subject: [orbeon-user] Transform / Pipeline broken by rel 2.5
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
------------------------------------------------------- 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
