Click here to Skip to main content
16,011,870 members
Home / Discussions / XML / XSL
   

XML / XSL

 
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 
Here's a little more of the original xsl that is failing. I thought this would be a simple syntax error or something so didn't post the surrounding loop.

Here it is:

<xsl:for-each select="//node[NodeParentNodeIdent = $ThisIdent][PagePublished = 'True']">
<xsl:if test="NodeIdent = //LinkedPageDetail/PageIdent">

<xsl:copy-of select=""/>

<xsl:variable name="reportName" >
<xsl:value-of select="normalize-space(NodeName)"/>
</xsl:variable>

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


<xsl:variable name="regionFlag">
<xsl:value-of select="//PageXML/Document/report1"/>
</xsl:variable>

<p><a href="{PageBreadcrumb}?UseRegions={$regionFlag}" target="_blank"><xsl:value-of select="PageTitle" disable-output-escaping="yes"/></a></p>
</xsl:if>
</xsl:for-each>


And here is the current node of that loop when it should find the workordertime report and print it's value:

<node>
<TreeIdent>2</TreeIdent>
<NodeIdent>274</NodeIdent>
<TreeName>Synergy - ePortal</TreeName>
<NodeName>workordertime</NodeName>
<NodeLevel>3</NodeLevel>
<NodeParentNodeIdent>273</NodeParentNodeIdent>
<SiteIdent>2</SiteIdent>
<SiteSortOrder>1</SiteSortOrder>
<SiteName>Synergy - ePortal</SiteName>
<SiteDescription>Synergy - ePortal</SiteDescription>
<SiteTitle>Web Site - Synergy - ePortal - QuantumCMS</SiteTitle>
<SitePublished>True</SitePublished>
<PageShowInNav>False</PageShowInNav>
<PageBreadcrumb>/Home/Reports/summaries/workordertime</PageBreadcrumb>
<PageIdent>274</PageIdent>
<PageSortOrder>1</PageSortOrder>
<PageName>workordertime</PageName>
<PageDescription>Workorder Time</PageDescription>
<PageTitle>Workorder Time</PageTitle>
<PageLevel>3</PageLevel>
<PageLeftBound>125</PageLeftBound>
<PageRightBound>126</PageRightBound>
<ParentNodeIdent>273</ParentNodeIdent>
<ParentPageIdent>273</ParentPageIdent>
<PageTypeIdent>1</PageTypeIdent>
<PageTypeName>Document</PageTypeName>
<PageSummary></PageSummary>
<PageReleaseDate>2006-10-03T00:00:00.0000000-04:00</PageReleaseDate>
<PageRevision>1</PageRevision>
<PageCached>False</PageCached>
<PageSearched>False</PageSearched>
<PageRequired>False</PageRequired>
<PagePublished>True</PagePublished>
<PageActive>True</PageActive>
<PageURL>/Home/Reports/summaries/workordertime</PageURL>
</node>

It's basically inside of another node just like it, and this for-each loop is an inner loop from another for-each loop.


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 
QuestionXSD.exe and Choice Elements. Pin
craftyFella24-Oct-06 3:32
craftyFella24-Oct-06 3:32 
AnswerRe: XSD.exe and Choice Elements. Pin
BoneSoft27-Oct-06 10:36
BoneSoft27-Oct-06 10:36 
AnswerRe: XSD.exe and Choice Elements. Pin
craftyFella20-Mar-07 5:59
craftyFella20-Mar-07 5:59 
QuestionSQL server 2005 xml value function with pattern matching Pin
Omkar Ghaisas20-Oct-06 9:53
Omkar Ghaisas20-Oct-06 9:53 
AnswerRe: SQL server 2005 xml value function with pattern matching Pin
PavanPareta23-Oct-06 19:36
PavanPareta23-Oct-06 19:36 
Questionhow to stote image file in xml .. [modified] Pin
PavanPareta19-Oct-06 18:59
PavanPareta19-Oct-06 18:59 
AnswerRe: how to stote image file in xml .. Pin
George L. Jackson20-Oct-06 11:53
George L. Jackson20-Oct-06 11:53 
AnswerRe: tag error Pin
Stefan Troschuetz18-Oct-06 5:21
Stefan Troschuetz18-Oct-06 5:21 
GeneralSOLVED Pin
Saira Tanwir18-Oct-06 20:44
Saira Tanwir18-Oct-06 20:44 
Questionexception: The writer is closed Pin
Saira Tanwir16-Oct-06 22:50
Saira Tanwir16-Oct-06 22:50 
AnswerRe: exception: The writer is closed Pin
Stefan Troschuetz17-Oct-06 4:39
Stefan Troschuetz17-Oct-06 4:39 
GeneralRe: exception: The writer is closed [modified] Pin
Saira Tanwir17-Oct-06 21:30
Saira Tanwir17-Oct-06 21:30 

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.