Nikita.Rakovchuk
Nikita.Rakovchuk

Reputation: 1

How can parse text in XSLT

I have <RequestorID Instance="2005-03-02T10:47:39"></RequestorID>

Need give 2005 and 03 and 02 in 3 variable. How do it?

I use <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

Thanks all!

Upvotes: 0

Views: 40

Answers (1)

michael.hor257k
michael.hor257k

Reputation: 116959

Try:

<xsl:variable name="month" select="substring(RequestorID/@Instance, 6, 2)" />

Upvotes: 1

Related Questions