You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Amna & Kiran <bo...@yahoo.com> on 2005/05/13 16:29:14 UTC
file with non-html tags
Hi
If we have a file that is basically XHTML but contains some non-XHTML tags
such as <abc>
how can we add those extra transformers to the pipeline to render these tags
into XHTML, as mentioned in "AddingCustomDocType"
Plz give an example bit of script to explain.
http://wiki.apache.org/lenya/AddingCustomDocType
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Using different XSLs
Posted by so...@gmail.com.
On 5/13/05, Amna & Kiran <bo...@yahoo.com> wrote:
> If we have a file that is basically XHTML but contains some non-XHTML tags
> such as <abc>
> how can we add those extra transformers to the pipeline to render these tags
> into XHTML, as mentioned in "AddingCustomDocType"
> http://wiki.apache.org/lenya/AddingCustomDocType
Follow the instructions for the CustomDocType. You add the name of
the new doctype to:
{pub}/parameter-doctype.xmap
Then add a file:
{pub}/xslt/newdoctype2xhtml.xsl
to translate your new tags to XHTML. This transformation is called by
the standard pipeline.
> Plz give an example bit of script to explain.
My supplement to the official documentation is at:
http://www.solprovider.com/solprovider/lenya.nsf/Home?readform&pg=doctype
solprovider
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Using different XSLs
Posted by qMax <qm...@mediasoft.ru>.
Friday, May 13, 2005, 9:28:23 PM, Amna & Kiran wrote:
AK> Hi
AK> If we have a file that is basically XHTML but contains some non-XHTML tags
AK> such as <abc>
In lenya/pubs/$pub/doctype.xmap add another match:
<map:match pattern="*/*/xhtml/**.xml">
<map:generate src="content/{2}/{4}.xml"/>
<!-- put your transformer here -->
<map:transform src="xslt/xhtml2xhtml.xsl">
<map:parameter name="rendertype" value="{1}"/>
<map:parameter name="nodeid" value="{page-envelope:document-node-id}"/>
<map:parameter name="language" value="{page-envelope:document-language}"/>
</map:transform>
<map:serialize type="xml"/>
</map:match>
This pipeline will match all requests for documents of type xhtml.
it should be added before <map:match pattern="*/*/*/**.xml">
--
qMax
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org