xsl-list
[Top] [All Lists]

RE: [xsl] Changing the Attibute Value

2008-07-21 21:57:41
Please some one can give good explanation than this ..?

- Buddhi -

-----Original Message-----
From: Abel Braaksma [mailto:abel(_dot_)online(_at_)xs4all(_dot_)nl] 
Sent: Tuesday, July 22, 2008 10:16 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Changing the Attibute Value

Buddhi D. Mahindarathne wrote:
1. In this XSL we are specifically searching for "ChamferedRectangle1"
in two places, but the last number "1" will change in XML files. So I
need a way of searching only for "ChamferedRectangle" without "1"
  

use the XPath function starts-with()

2. After first "template match" we are inside the node set, so can't
we
do everything with in that, rather than having multiple matches..???
  

Exactly. You just have multiple matches and the processor will decide 
which one matches your input best. But you can do a lot inside it, using

xsl:for-each, xsl:copy-of, xsl:value-of, xsl:choose etc. Lookup any 
manual to find out what instructions are valid. At www.w3schools.org 
there's a basic tutorial on XSLT.

Cheers,
-- Abel --

--~------------------------------------------------------------------
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>
--~--


--~------------------------------------------------------------------
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>