Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 29th, 2004, 04:01 PM
Registered User
 
Join Date: Jul 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can I parse an LDAP DN?

I have the following value:
Code:
<dn>AccountName=testid9,AccountContainerName=Accounts,DirectoryName=isnb2dv1,NamespaceName=AccessControl,dc=DOM1</dn>
I want to parse that, and display only the information after the equal sign and before the comma for the DirectoryName piece, in the example isnb2dv1.

How can I do that? Is there a way?
 
Old July 30th, 2004, 12:40 PM
Registered User
 
Join Date: Jul 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK...

So I've figured that I have to do it via something like this...

Code:
<xsl:value-of select="substring-before(substring-after(dn,'DirectoryName='),','"/>
Anyone see anything wrong with this?

(if you couldn't tell, I'm an absolute utter newbie at this)






Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Parse error: parse error, unexpected T_STRING geminient PHP How-To 4 August 18th, 2007 02:27 AM
Parse error: parse error, unexpected $end Ayodeji Adegbaju Pro PHP 3 January 12th, 2007 12:21 PM
LDAP Authentication -- Need Help avinashraj General .NET 1 May 25th, 2006 12:13 AM
Access LDAP minhpx J2EE 0 June 14th, 2005 10:22 PM
LDAP bmains ASP.NET 1.0 and 1.1 Professional 0 May 26th, 2004 07:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.