Subject: Re: [xsl] Entity escaping/translation From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Wed, 17 Jun 2009 11:07:15 -0700 |
I have a stylesheet I've inherited. We are currently using v1 with saxon. I need to create the following output: <img src="<? echo(fldImg(2)) ?>">
but the stylesheet is producing <img src="<? echo(fldImg(2)) ?>">
I tried switching the output type to text thinking that this would keep my > from changing to > Currently we are running a BB script on the output file to do a regex on this pattern, and I would like to remove that step.
t:\ftemp>type dan.xsl <?xml version="1.0" encoding="US-ASCII"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:character-map name="dan"> <xsl:output-character character="￐" string="<"/> <xsl:output-character character="￑" string=">"/> </xsl:character-map>
<xsl:template match="/"> <img src="￐? echo(fldImg(2)) ?￑"/> </xsl:template>
</xsl:stylesheet> t:\ftemp>xslt2 dan.xsl dan.xsl <img src="<? echo(fldImg(2)) ?>"/> t:\ftemp>
-- Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Entity escaping/translation, dvint | Thread | Re: [xsl] Entity escaping/translati, dvint |
[xsl] Entity escaping/translation, dvint | Date | Re: [xsl] Entity escaping/translati, dvint |
Month |