xsl-list
[Top] [All Lists]

Re: [xsl] Quotes in expression

2006-11-03 07:39:19
"Ed Yau" <eyau(_at_)vstrading(_dot_)co(_dot_)uk> writes:

Hi,

I'm having issues with a the ' character.

What I'm looking to do is create a line that says:
$content-file/Doc/Field['myField']/table/row

I have used the following expression:
concat('$content-file/Doc/Field[(_at_)FieldName=&#x0027;',{$data},'&#x0027;]/
table/row')

However the result of this looks like
$content-file/Doc/Field['{$data}']/table/row

If some could shed some light on this, I'd be grateful.

1. why do you need it? what's wrong with the embedded quote?

   I guess I'm saying: what's the context?

2. could you use:

  $content-file/Doc/Field[&quot;myField&quot;]/table/row
  

-- 
Nic Ferrier
http://www.tapsellferrier.co.uk   for all your tapsell ferrier needs

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>