Microsoft
Software
Hardware
Network
Question : Using xslt to generate sql scripts
I have an xml file that looks like the following below and an xslt file that is attached. I am trying to generate a sql server script through the XML--Show XSLT Output-- function in Visual Studio. The problem basically is I do not know how to get the <accesslevel_i> element which lives under the <dbuserTbl> element. I want to take this and assign it to parameter in my sql script. Any advice on how to do this would be greatly appreciated as currently it does not get populated because the <accesslevel_i> is a level deeper.
How do I capture this in my xslt file?
<ASPUSERSINROLES>
<aspnet_Users>
<UserId>96C75137-0EB2-4A41
-AD0A-4B55
D2370DE3</
UserId>
<UserName>
[email protected]
m</UserNam
e>
<LoweredUserName>user@clev
emed.com</
LoweredUse
rName>
<dbuserTbl>
<accesslevel_i>44</accessl
evel_i>
<companyid_i>2020</company
id_i>
</dbuserTbl>
</aspnet_Users>
<ASPUSERSINROLES>
Users-in-Roles.txt
(1 KB)
(File Type Details)
XSLT used to generate SQL Script
Answer : Using xslt to generate sql scripts
Place this line in your "aspnet_Users" template:
<xsl:apply-templates select="./dbuserTbl"/>
Random Solutions
customized toolbar in Access 2007
Font Question
how to truncate the transaction logs in exchange 2010 after NT backup
XenServer 5.5 The Storage repository is not available.
Can't access Exchange 2003 OWA from Internet
How to compress a string into a short representation in ASP.NET using C# or VB.NET?
is it possible virus affected VPN client spread virus in corporate network?
VB.NET simple SendMail program error: System.Net.Mail.SmtpExcept
ion: Failure sending mail
Horizontal RSS Feed News Ticker
Transparent PNG IE8