[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: converting quot to " in XSLT
XSLT has output methods for XML, HTML, and text. JSP isn't XML and it isn't HTML, so achieving this is messy. Disable-output-escaping isn't supported for attributes. You can use d-o-e to hand-serialize the entire element. In XSLT 2.0, character maps should handle this reasonably well, by assigning substitution characters to the strings <% and %> and perhaps '"'. But the bottom line is that this isn't an output format that's directly supported. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: Arulraj [mailto:p_arulraj@xxxxxxxxx] > Sent: 14 June 2005 07:18 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: converting quot to " in XSLT > > Hi, > > I am using following XSLT for generating JSP output. > > XSLT codes: > ----------- > <xsl:attribute name="value"> > <xsl:choose> > <xsl:when > test="($ParamJSP='true') and > not(@jspvalue='')"> > <xsl:text > disable-output-escaping="yes"><%= > jXPathHelper.getValOrObj(workFlowResult,"</xsl:text> > <xsl:value-of > select="@jspvalue"/> > <xsl:text > disable-output-escaping="yes">") > %></xsl:text> > </xsl:when> > <xsl:otherwise> > <xsl:value-of > select="./value"/> > </xsl:otherwise> > </xsl:choose> > </xsl:attribute> > > I am getting the following JSP string: > ---------------------------------------- > value="<%= > jXPathHelper.getValOrObj(workFlowResult,"format:floatValu > e(Abrechnungsdaten/beitraegeSoll, > 'FLOAT_ZWEI_NACHKOMMA')") %>" > > Here i am getting " instead of ". > > How to solve this? Any help. > > Thanks in advance > Arul > > > > __________________________________ > Discover Yahoo! > Use Yahoo! to plan a weekend, have fun online and more. Check it out! > http://discover.yahoo.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|