[Nicexsl-help] RE: Problem with niceXSL
Brought to you by:
willink
From: Willink, E. <Ed....@th...> - 2004-03-03 15:53:06
|
Hi Markus The XSL2NIceXSL script was originally intended as just an assistance prior to major manual tidying up. For version 2.0, I improved it so that it now handles all XSLT that I have tried. Tidying up is now more a matter of aesthetic taste than necessity. I don't use text nodes much, so you've found a bug. The reverse engineering of text nodes, forces use of ", rather than the most convenient of " or ', with escaping for the other, and then gets lost. I'll fix this in the next release. You could workaround it by changing your XSLT to use &apos. More realistically; just mend the NiceXSL by hand other := 'num="REPLACE_INPUTFORM_num_END"' you should get eqivalently functional XSLT generated. Regards Ed Willink ------------------------------------------------------------------------ E.D.Willink, Email: mailto:EdW...@ie... Thales Research and Technology (UK) Ltd, Tel: +44 118 923 8278 (direct) Worton Drive, or +44 118 986 8601 (ext 8278) Worton Grange Business Park, Fax: +44 118 923 8399 Reading, RG2 0SB ENGLAND http://www.computing.surrey.ac.uk/personal/pg/E.Willink ------------------------------------------------------------------------ > -----Original Message----- > From: Markus Oeste [mailto:m....@sc...] > Sent: 03 March 2004 12:51 > To: wi...@us... > Subject: Problem with niceXSL > > > Hello Mr. Willink! > > We decide to use your niceXSL for our xsl documents. During > the test of > niceXSL I have the Problem, that a quotation mark out of > square brackets in > my xsl file after transform to nice and retransform are out > of my .xsl file > including the content in the quotationsmarks. > Is this your intention ? > > Here are my problematical lines of code: > > The Source: > <xsl:call-template name="createCommand"> > <xsl:with-param > name="other">num="REPLACE_INPUTFORM_num_END"</xsl:wi th-param> > </xsl:call-template> > > Is in niceXSL Translated to: > call createCommand( command := { > other := {" num="REPLACE_INPUTFORM_num_END"}); > }; > > And back translated to: > <xsl:call-template name="createCommand"> > <xsl:with-param name="other"> num= </xsl:with-param> > </xsl:call-template> > > So all in the quotation marks is no longer present. > > Thanks for your help! > > Markus Oeste > |