Re: [xsl] Embedding an SSI echo in an XML attribute

Subject: Re: [xsl] Embedding an SSI echo in an XML attribute
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 9 May 2007 10:45:29 +0100
> To acheive this in XSLT 1 we generated the code as CDATA in a plain text 
> file:

If you are using plain text ie xsl:output method="text" then you don't
need
<xsl:text disable-output-escaping="yes">
as the text output method never does any escaping anyway.


In XSLT If you want to use the xml output method so you can generate
most of the elements as elements then you can do something like

<xsl:output use-character-maps="ssi"/>

  <xsl:character-map name="ssi">
    <xsl:output-character character="&#xF0001;" string="&lt;!--"/>
    <xsl:output-character character="&#xF0002;" string="--&gt;"/>
  </xsl:character-map>


<xsl:template match="jhkhgf">
  <a href="&#xF0001;echo var="grar.5.url" encoding="none" "&#xF0002;">link</a>

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

Current Thread