XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Srinath AcharSubject: XSLT variable path
Author: Srinath Achar
Date: 29 Sep 2008 01:01 PM
Hello Friends,

There is a file which contains

<Message type="INVOIC" version="D" release="96A" agency="UN" guideline="ELEB01" id="D:\Asiakkaat\UPM_CE\Release\0067E10A.TIF">
</Message>

I need to code the XSLT mapping in such a way that I should get the output as below (to one segment <TDOBNAME>)

<TDOBNAME>0067E10A.TIF</TDOBNAME>

Please note that the length of " D:\Asiakkaat\UPM_CE\Release\" is a variable length.Hence we can not use the substring((Message/@id) 29,12).
Please suggest the code.

Thanks in advance for your time.

Posttop
(Deleted User) Subject: XSLT variable path
Author: (Deleted User)
Date: 01 Oct 2008 03:28 PM
You need to write a template where substring-after is used to recursively extract the substrings starting with '\' until it returns an empty string.

Alberto

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.