[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: A probs!!

Subject: RE: A probs!!
From: "John Wang" <jwang@xxxxxxxxxxx>
Date: Wed, 2 May 2001 10:29:41 -0500
jon wang
You can add one more "\" after the "\", or you can change "\" to "/" before
you store
it to the database. Here is a Java method that I use to do this:

	private String getFileName(String oldName)
	{
		StringTokenizer st = new StringTokenizer(oldName, "\\");
		String fileName = "";
		while (st.hasMoreTokens())
		{
			fileName += st.nextToken() + "/";
		}
		int start = fileName.indexOf(":") + 1;
		int end = fileName.lastIndexOf("/");
		fileName = fileName.substring(start, end);
		return fileName;
	}

Please post any better idea.

Hope this helps.

-John

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Sachidanandam E.K
Sent: Tuesday, May 02, 2000 7:49 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  A probs!!

Hi there,
   I am using a user login details to be stored in database like
'domainname\user" . But when I construct a xml that "\" is not geting in.
   How to solve this?

Sachi



----- Original Message -----
From: "Jon Wynacht" <jwynacht@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, May 01, 2001 9:41 PM
Subject: RE:  Recursion Examples


> For xml like this?
>
> <?xml version="1.0"?>
> <Version>
> <ID>105394</ID>
> <Name>PENDING</Name>
> <VersionDesc>This is the active Module tree for this Project</VersionDesc>
> <Module>
> <ID>105395</ID>
> <Name>TestingLists Root Module</Name>
> <ParentModuleID>0</ParentModuleID>
> <ModuleDesc>TestingLists Root Module</ModuleDesc>
> </Module>
> <Module>
> <ID>105396</ID>
> <Name>TestingLists Root Module</Name>
> <ParentModuleID>105396</ParentModuleID>
> <ModuleDesc>TestingLists Root Module</ModuleDesc>
> </Module>
> </Version>
>
> It didn't work...just laid out all of the values in a long string. But I
> think this is something I can work with.
>
> Thanks!
>
> Jon
>
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Robert Seber
> Sent: Tuesday, May 01, 2001 8:07 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  Recursion Examples
>
>
> This XSL will produce that result:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
>
> <xsl:template match="/module">
> <html>
> <head>
> </head>
> <body>
> Root Module<br/>
> <xsl:apply-templates select="module|module/module"/>
> </body>
> </html>
> </xsl:template>
>
> <xsl:template match="module">
> <xsl:for-each select="ancestor::*">&#160;&#160;&#160;</xsl:for-each>
> Module<xsl:value-of select="@id"/><input type="checkbox"
> name="ParentModuleID" value="{@id}"/>
> <br/>
> </xsl:template>
>
> </xsl:stylesheet>
>
> > -----Original Message-----
> > From: Jon Wynacht [mailto:jwynacht@xxxxxxxxx]
> > Sent: Tuesday, May 01, 2001 3:41 PM
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject: RE:  Recursion Examples
> >
> >
> > Dan/Listers,
> >
> > I would envision a simple HTML to be as follows:
> >
> > Root Module<br/>
> >
> > &#160;&#160;&#160;Module1<input type="checkbox" name="ParentModuleID"
> > value="1"/><br/>
> >
> > &#160;&#160;&#160;&#160;&#160;&#160;Module4<input type="checkbox"
> > name="ParentModuleID" value="4"/><br/>
> >
> > &#160;&#160;&#160;&#160;&#160;&#160;Module5<input type="checkbox"
> > name="ParentModuleID" value="5"/><br/>
> >
> > &#160;&#160;&#160;&#160;&#160;&#160;Module6<input type="checkbox"
> > name="ParentModuleID" value="6"/><br/>
> >
> > &#160;&#160;&#160;Module2<input type="checkbox" name="ParentModuleID"
> > value="1"/><br/>
> >
> > &#160;&#160;&#160;&#160;&#160;&#160;Module7<input type="checkbox"
> > name="ParentModuleID" value="4"/><br/>
> >
> > &#160;&#160;&#160;&#160;&#160;&#160;Module8<input type="checkbox"
> > name="ParentModuleID" value="5"/><br/>
> >
> > &#160;&#160;&#160;&#160;&#160;&#160;Module9<input type="checkbox"
> > name="ParentModuleID" value="6"/><br/>
> >
> > A more complex one would use folder icons and images that
> > mimicked tree
> > branches. That, I'm sure, could be expanded on from the code
> > that creates
> > the above.
> >
> > Possible?
> >
> > Thanks,
> >
> > Jon
> >
> > -----Original Message-----
> > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Dan Diebolt
> > Sent: Tuesday, May 01, 2001 6:42 AM
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject: RE:  Recursion Examples
> >
> >
> > >I want to be able to display the results as a
> > >tree in html...for example:
> >
> > root module
> > |--modulue1
> > |---module4
> > |---module5
> > |---module6
> > |--module2
> > |---module7
> > |---module8
> > |---module9
> >
> > Post the html you would markup the above to get the desired
> > indention effect. There are several ways of getting indention
> > in html - all of which have some disadvantage. Do you really
> > want pipes and minus signs?
> >
> > Regards,
> >
> > Dan
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Auctions - buy the things you want at great prices
> > http://auctions.yahoo.com/
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
> >
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.