Click here to Skip to main content
15,923,051 members
Home / Discussions / XML / XSL
   

XML / XSL

 
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 
AnswerRe: Schema for "Element or List of Elements" Pin
led mike25-Oct-06 8:58
led mike25-Oct-06 8:58 
GeneralRe: Schema for "Element or List of Elements" Pin
peterchen25-Oct-06 9:15
peterchen25-Oct-06 9:15 
GeneralRe: Schema for "Element or List of Elements" Pin
Michael Dunn25-Oct-06 9:30
sitebuilderMichael Dunn25-Oct-06 9:30 
AnswerRe: Schema for "Element or List of Elements" Pin
BoneSoft27-Oct-06 10:29
BoneSoft27-Oct-06 10:29 
GeneralRe: Schema for "Element or List of Elements" Pin
peterchen27-Oct-06 12:06
peterchen27-Oct-06 12:06 
AnswerRe: Schema for "Element or List of Elements" Pin
KaЯl2-Nov-06 21:35
KaЯl2-Nov-06 21:35 
QuestionXSL/Xpath Problem Pin
Sarvis24-Oct-06 17:23
Sarvis24-Oct-06 17:23 
This is my first attempt at making "real" modifications to an xsl stylesheet, and I'm completely stumped now. This is probably something simple, so try not to laugh too much. Wink | ;)

Here's the code I'm having trouble with:


<xsl:variable name="reportName">
<xsl:value-of select="NodeName"/>
</xsl:variable>

<xsl:value-of select="$reportName"/>

<!--Does not work-->
<xsl:value-of select="//PageXML/Document/report[name = $reportName]/regionalFlag"/>

<!--Works fine-->
<xsl:value-of select="//PageXML/Document/report[name = 'workordertime']/regionalFlag"/>



Now, I'm printing the value of $reportName every time and it IS coming up as workordertime, but for some reason it isn't selecting any value. If I hardcode the report name, however, it DOES work... so the basic XSL is right. I'm fairly sure that's how I'd use a variable to do the select, as the same technique is used in other places... I have no idea what could be causing the problem...
GeneralRe: XSL/Xpath Problem Pin
Elina Blank25-Oct-06 2:39
sitebuilderElina Blank25-Oct-06 2:39 
GeneralRe: XSL/Xpath Problem Pin
Sarvis25-Oct-06 4:46
Sarvis25-Oct-06 4:46 
GeneralRe: XSL/Xpath Problem Pin
Elina Blank25-Oct-06 5:45
sitebuilderElina Blank25-Oct-06 5:45 
GeneralRe: XSL/Xpath Problem Pin
Sarvis25-Oct-06 10:22
Sarvis25-Oct-06 10:22 
GeneralRe: XSL/Xpath Problem Pin
Elina Blank26-Oct-06 3:38
sitebuilderElina Blank26-Oct-06 3:38 

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.