Click here to Skip to main content
15,895,142 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionXSLT:copy-of Pin
ybasha2-Nov-06 5:15
ybasha2-Nov-06 5:15 
AnswerRe: XSLT:copy-of Pin
Dustin Metzgar2-Nov-06 5:24
Dustin Metzgar2-Nov-06 5:24 
GeneralRe: XSLT:copy-of Pin
ybasha2-Nov-06 5:30
ybasha2-Nov-06 5:30 
QuestionCreate anchors in an XHTML document generated with XSLT Pin
ISmith30-Oct-06 7:47
ISmith30-Oct-06 7:47 
AnswerRe: Create anchors in an XHTML document generated with XSLT Pin
George L. Jackson30-Oct-06 13:53
George L. Jackson30-Oct-06 13:53 
GeneralRe: Create anchors in an XHTML document generated with XSLT Pin
ISmith31-Oct-06 6:16
ISmith31-Oct-06 6:16 
QuestionWeb Service needed for Sharepoint Pin
dgibson553130-Oct-06 3:08
dgibson553130-Oct-06 3:08 
QuestionInsert one value in XSLT file Pin
shapper27-Oct-06 9:00
shapper27-Oct-06 9:00 
Hello,

I am transforming a XML file into another XML file using a XSLT.

Everything is working fine! I have only one problem:

I want one of the values in my XSLT file to be taken from a Key in my Web.Config AppSettings!

Please see the XSLT code:

Hi,

I was reading some Merge Methods in the web but I am having some problems making this work.

Look at my XSLT code:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.google.com/schemas/sitemap/0.84"
xmlns:dk="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="dk:*"/>
<xsl:template match="@*|text()|comment()"/>
<xsl:template match="/">
<xsl:element name="urlset">
<xsl:apply-templates select="//dk:siteMapNode[@google='true']"/>
</xsl:element>
</xsl:template>
<xsl:template match="dk:siteMapNode">
<xsl:element name="url">
<xsl:element name="loc">
<xsl:text>http://www.MYDOMAIN.com/</xsl:text>
<xsl:value-of select="substring(@url, 3)"/>
</xsl:element>
<xsl:element name="lastmod">
<xsl:value-of select="@lastmod"/>
</xsl:element>
<xsl:element name="changefreq">
<xsl:value-of select="@changefreq"/>
</xsl:element>
<xsl:element name="priority">
<xsl:value-of select="@priority"/>
</xsl:element>
</xsl:element>
</xsl:template>
</xsl:stylesheet>

Do you see the line?

<xsl:text>http://www.MYDOMAIN.com/</xsl:text>

I want "http://www.MYDOMAIN.com/" to be taken from a Key in Application Settings in my Web.Config or at run time before the XML file is displayed.

Thanks,

Miguel
AnswerRe: Insert one value in XSLT file Pin
Dustin Metzgar27-Oct-06 9:17
Dustin Metzgar27-Oct-06 9:17 
Questionxpath during xsl transfomation Pin
Savas Cilve27-Oct-06 4:24
Savas Cilve27-Oct-06 4:24 
AnswerRe: xpath during xsl transfomation Pin
led mike27-Oct-06 5:16
led mike27-Oct-06 5:16 
QuestionRe: xpath during xsl transfomation Pin
Savas Cilve27-Oct-06 5:19
Savas Cilve27-Oct-06 5:19 
AnswerRe: xpath during xsl transfomation Pin
led mike27-Oct-06 5:45
led mike27-Oct-06 5:45 
AnswerRe: xpath during xsl transfomation Pin
Dustin Metzgar27-Oct-06 8:05
Dustin Metzgar27-Oct-06 8:05 
GeneralRe: xpath during xsl transfomation Pin
Savas Cilve30-Oct-06 1:15
Savas Cilve30-Oct-06 1:15 
GeneralRe: xpath during xsl transfomation Pin
Dustin Metzgar1-Nov-06 5:16
Dustin Metzgar1-Nov-06 5:16 
GeneralRe: xpath during xsl transfomation Pin
Savas Cilve1-Nov-06 5:28
Savas Cilve1-Nov-06 5:28 
GeneralRe: xpath during xsl transfomation Pin
Dustin Metzgar1-Nov-06 10:32
Dustin Metzgar1-Nov-06 10:32 
QuestionIgnore whitespace problem while reading XML file Pin
biglewy26-Oct-06 1:22
biglewy26-Oct-06 1:22 
AnswerRe: Ignore whitespace problem while reading XML file Pin
led mike26-Oct-06 9:12
led mike26-Oct-06 9:12 
AnswerRe: Ignore whitespace problem while reading XML file Pin
Michael Dunn26-Oct-06 16:16
sitebuilderMichael Dunn26-Oct-06 16:16 
GeneralRe: Ignore whitespace problem while reading XML file Pin
biglewy26-Oct-06 20:12
biglewy26-Oct-06 20:12 
GeneralRe: Ignore whitespace problem while reading XML file Pin
led mike27-Oct-06 6:36
led mike27-Oct-06 6:36 
GeneralRe: Ignore whitespace problem while reading XML file Pin
Dustin Metzgar27-Oct-06 8:03
Dustin Metzgar27-Oct-06 8:03 
QuestionSchema for "Element or List of Elements" Pin
peterchen25-Oct-06 6:06
peterchen25-Oct-06 6:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.