Click here to Skip to main content
15,896,606 members
Home / Discussions / XML / XSL
   

XML / XSL

 
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 
GeneralRe: XSL/Xpath Problem Pin
Sarvis27-Oct-06 12:04
Sarvis27-Oct-06 12:04 
AnswerRe: XSL/Xpath Problem Pin
Dustin Metzgar26-Oct-06 9:33
Dustin Metzgar26-Oct-06 9:33 
GeneralRe: XSL/Xpath Problem Pin
Sarvis26-Oct-06 14:02
Sarvis26-Oct-06 14:02 
GeneralRe: XSL/Xpath Problem Pin
Dustin Metzgar27-Oct-06 7:59
Dustin Metzgar27-Oct-06 7:59 
GeneralRe: XSL/Xpath Problem Pin
Sarvis27-Oct-06 12:03
Sarvis27-Oct-06 12:03 
GeneralRe: XSL/Xpath Problem Pin
Dustin Metzgar27-Oct-06 12:21
Dustin Metzgar27-Oct-06 12:21 
GeneralRe: XSL/Xpath Problem Pin
Sarvis27-Oct-06 13:07
Sarvis27-Oct-06 13:07 
GeneralRe: XSL/Xpath Problem Pin
Dustin Metzgar27-Oct-06 14:08
Dustin Metzgar27-Oct-06 14:08 
GeneralRe: XSL/Xpath Problem Pin
Sarvis1-Nov-06 4:35
Sarvis1-Nov-06 4:35 
QuestionCombining xpath queries. please help [modified] Pin
Ista24-Oct-06 5:56
Ista24-Oct-06 5:56 
AnswerRe: Combining xpath queries. please help Pin
Michael Dunn24-Oct-06 7:00
sitebuilderMichael Dunn24-Oct-06 7:00 
GeneralRe: Combining xpath queries. please help Pin
Ista24-Oct-06 7:03
Ista24-Oct-06 7:03 

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.