W3C home > Mailing lists > Public > xproc-dev@w3.org > April 2010

Specifying output in p:xslt

From: HILLMAN, Tomos <tomos.hillman@oup.com>
Date: Mon, 12 Apr 2010 17:49:02 +0100
To: "xproc-dev@w3.org" <xproc-dev@w3.org>
Message-ID: <04E229667EEBCF4E9A075810ECA4665F2BB26833B3@UKMB02.uk.oup.com>
Hi List,

When trying to run an xslt step like this (from Oxygen v.11.2):

	<p:input port="source">
		<p:document href="file:/U:/xml examples/e1398.xml"/>
	<p:input port="stylesheet">
			<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0">
				<xsl:param name="system"/>
				<xsl:param name="public"/>
				<xsl:output doctype-public="$public" doctype-system="$system"/>
				<!--<xsl:template match="/">
						<xsl:attribute name="public" select="$public"/>
						<xsl:attribute name="system" select="$system"/>
				<xsl:template match="node()|@*">
						<xsl:apply-templates select="node()|@*"/>
	<p:input port="parameters">
		   <c:param name="public" value="-//OXFORD//DTD OXENCYCLML//EN"/>
		   <c:param name="system" value="OxEncyclML.dtd"/>

I get no results from the doctype-public and doctype-system settings (i.e.. no doctype declaration on the output).

Running an xslt transformation on an identical XSL stylesheet works fine.

Is this expected behaviour?

Thanks in advance (again!)


Oxford University Press (UK) Disclaimer

This message is confidential. You should not copy it or disclose its contents to anyone. You may use and apply the information for the intended purpose only. OUP does not accept legal responsibility for the contents of this message. Any views or opinions presented are those of the author only and not of OUP. If this email has come to you in error, please delete it, along with any attachments. Please note that OUP may intercept incoming and outgoing email communications.
Received on Tuesday, 13 April 2010 08:00:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:06 UTC