I have a page which is using xsl to render the data and I can't figure out how to access the model data from the xsl:value-of - can anybody help, my page is shown below - <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
The reason I am doing this is that my page has a table with a summary of 5 items in my input data. When the user selects one of the rows I replace my-data with the details of one of the selected items (it's a bit inefficient because my XPL just copied details from the instance in the page to my-data, but I need some way of refreshing the xsl view). I suppose I could have converted my data to html in the xpl and then just used an xforms:output to print my ready converted detail view, but I want to have triggers in the details view, I wasn't sure if they would work if they were produced elsewhere. I'm sure I haven't described myself very well. So I have attached my test page and data. You need the following in the page-flow to use it - <page id='test-journey2' path-info="/ras/test/test-journey2" default-submission="test-journey-result.xml" view="test-journey2.xhtml"/> <page id='test-journey2-select-page' path-info="/ras/test/refresh/test-journey2" view="select-journey.xpl"/> Essentially I want to allow the user to select a row in the table and see the details of that journey, and then I want to add trigger buttons to the journey details to go to a bigger map display (the images are maps when the correct URL is used). <<test-journey-result.xml>> <<test-journey2.xhtml>> <<select-journey.xpl>> Richard Shaw ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤ Atkins Transport Systems
Direct Dial.: +44 (0) 1372 756407
This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. test-journey-result.xml (42K) Download Attachment |
Richard, /root/data1 will work for you Ryan Ryan
Puddephatt Software Engineer TFX Group - IT UK Scotand EH54 7DP ( 01506 407 110 7 01506 407 108 From: Shaw, Richard A
[mailto:[hidden email]] I
have a page which is using xsl to render the data and I can't figure out how to
access the model data from the xsl:value-of - can anybody help, my page is
shown below - <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
The reason I am doing this is that my page has a table with a
summary of 5 items in my input data. When the user selects one of the rows I
replace my-data with the details of one of the selected items (it's a bit
inefficient because my XPL just copied details from the instance in the page to
my-data, but I need some way of refreshing the xsl view). I suppose I could have converted my data to html in the xpl and
then just used an xforms:output to print my ready converted detail view, but I
want to have triggers in the details view, I wasn't sure if they would work if
they were produced elsewhere. I'm sure I haven't described myself very well. So I have
attached my test page and data. You need the following in the page-flow to use
it - <page
id='test-journey2'
path-info="/ras/test/test-journey2"
default-submission="test-journey-result.xml" view="test-journey2.xhtml"/> <page
id='test-journey2-select-page'
path-info="/ras/test/refresh/test-journey2"
view="select-journey.xpl"/> Essentially I want to allow the user to select a row in the
table and see the details of that journey, and then I want to add trigger
buttons to the journey details to go to a bigger map display (the images are
maps when the correct URL is used). <<test-journey-result.xml>>
<<test-journey2.xhtml>> <<select-journey.xpl>> Richard Shaw ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤
Direct Dial.: +44 (0) 1372 756407
This email and any attached files are confidential and copyright
protected. If you are not the addressee, any dissemination of this
communication is strictly prohibited. Unless otherwise expressly agreed in
writing, nothing stated in this communication shall be legally binding. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Shaw, Richard A
That works in an xforms:output but it doesn't seem to work
for xsl:value-of.
Richard Shaw ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤ Atkins Transport
Systems Direct Dial.: +44 (0) 1372
756407 From: Ryan Puddephatt [mailto:[hidden email]] Sent: 23 April 2006 17:44 To: [hidden email] Subject: RE: [ops-users] How to access model data in xsl view Richard,
/root/data1 will work for you Ryan Ryan
Puddephatt Software
Engineer TFX Group - IT
UK Scotand EH54
7DP (
01506 407
110 7
01506 407
108 From: Shaw,
Richard A [mailto:[hidden email]] I
have a page which is using xsl to render the data and I can't figure out how to
access the model data from the xsl:value-of - can anybody help, my page is shown
below - <xhtml:html
xmlns:xhtml="http://www.w3.org/1999/xhtml"
The reason I am doing this
is that my page has a table with a summary of 5 items in my input data. When the
user selects one of the rows I replace my-data with the details of one of the
selected items (it's a bit inefficient because my XPL just copied details from
the instance in the page to my-data, but I need some way of refreshing the xsl
view). I suppose I could have
converted my data to html in the xpl and then just used an xforms:output to
print my ready converted detail view, but I want to have triggers in the details
view, I wasn't sure if they would work if they were produced
elsewhere. I'm sure I haven't described
myself very well. So I have attached my test page and data. You need the
following in the page-flow to use it -
<page id='test-journey2'
path-info="/ras/test/test-journey2"
default-submission="test-journey-result.xml"
view="test-journey2.xhtml"/>
<page id='test-journey2-select-page'
path-info="/ras/test/refresh/test-journey2"
view="select-journey.xpl"/>
Essentially I want to allow
the user to select a row in the table and see the details of that journey, and
then I want to add trigger buttons to the journey details to go to a bigger map
display (the images are maps when the correct URL is
used). <<test-journey-result.xml>>
<<test-journey2.xhtml>> <<select-journey.xpl>>
Richard Shaw
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤
Direct Dial.: +44 (0) 1372
756407 This email and any
attached files are confidential and copyright protected. If you are not the
addressee, any dissemination of this communication is strictly prohibited.
Unless otherwise expressly agreed in writing, nothing stated in this
communication shall be legally binding. This message has been scanned for viruses by MailControl -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |