On Thu, 2012-07-19 at 14:42 +0100, stuart shepherd wrote:
That last email went off a bit early.
I'm guesing it's something to do with having elements within the text, but
it doesn't look to be replacing anything but rather adding in the replace
value multiple times, is there a way round
Noam Postavsky schrieb am 19.07.2012 um 10:18 (-0400):
xsl:template match='//control[name=MatGrp1Ch1Pend]/enum'
Actually, using the descendant axis (//) like above is redundant and
misleading. It is equivalent to just control[ … ]/enum. Why? Because
every control element node found is bound
Thank you, that work's brillantly.
On Thu, Jul 19, 2012 at 3:18 PM, Noam Postavsky
npost...@users.sourceforge.net wrote:
On Thu, Jul 19, 2012 at 9:42 AM, stuart shepherd
jonny.w...@googlemail.com wrote:
I'm guesing it's something to do with having elements within the text,
but
it doesn't
Hi
I've nearly created an XLST that does nearly what I want
?xml version=1.0 encoding=utf-8?
xsl:stylesheet version=2.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xsl:template match=node()|@*
xsl:copy
xsl:apply-templates select=node()|@*/
/xsl:copy
/xsl:template
xsl:template
On Mon, Jul 16, 2012 at 6:09 AM, stuart shepherd
jonny.w...@googlemail.com wrote:
xsl:template match=//control[name='DelaySeconds']/numeric/max
xsl:element name={name(.)}
xsl:value-of select=translate(string(.), '110', '5') /
/xsl:element
/xsl:template
I think you could just do
Message: 1
Date: Mon, 16 Jul 2012 11:09:56 +0100
From: stuart shepherd jonny.w...@googlemail.com
xsl:template match=//control[name='DelaySeconds']/numeric/max
xsl:element name={name(.)}
xsl:value-of select=translate(string(.), '110', '5') /
/xsl:element
/xsl:template
I'll Give that a try thanks a lot for your help I'll let you know how it
goes.
On Thu, Jul 12, 2012 at 7:07 PM, Piotr Sipika piotr...@optonline.netwrote:
On 07/12/2012 09:53 AM, stuart shepherd wrote:
Searching the web I've seen some examples in XSLT on how to
do something like this, but I
Hi
I've had a look at this and I'm not sure it does it exactly what I want.
My Main XML will look something like this
control
nameControlName/name
max50/max
/control
The control name is unique to that control, which is what I use to identify
it.
There will several controls in the XML
On 07/12/2012 09:53 AM, stuart shepherd wrote:
Searching the web I've seen some examples in XSLT on how to
do something like this, but I have never used XSLT. Does anyone know if
there is a way to do this in XML.
XSLT is your best bet.
Here's a sample stylesheet which will:
- change the name