|
Rank: Member
Joined: 4/10/2019 Posts: 25
|
Hi, I try to display a table when a checkbox is checked by the user. To do it, I put the table in this condition: "if(document/visible)" ("visible" is the container of the checkbox), but it doesn't work. Is it possible to display the content depending on a chekbox? My version of the software is Altova StyleVision 2019 sp1. Thank youFile Attachment(s): FM.sps (19kb) downloaded 279 time(s). test.xml (1kb) downloaded 245 time(s). test.xsd (1kb) downloaded 243 time(s).
|
|
Rank: Advanced Member
Joined: 12/13/2005 Posts: 2,856 Location: Mauritius
|
Of course, and your approach is correct - using Conditions. There is probably some error in your XPath
Attach here all your files for review
|
|
Rank: Member
Joined: 4/10/2019 Posts: 25
|
Done, I attached the .sps, xml and xsd files. the xml and xsd files are here just to test because I don't have the files yet.
|
|
Rank: Advanced Member
Joined: 12/13/2005 Posts: 2,856 Location: Mauritius
|
Yes, there was an error in your XPath
Change the first to
document/visible = true()
|
|
Rank: Member
Joined: 4/10/2019 Posts: 25
|
Even with the change, the table is still visible in the HTML preview when I uncheck the chekbox
|
|
Rank: Advanced Member
Joined: 12/13/2005 Posts: 2,856 Location: Mauritius
|
That is clear - the check box is "alive" in Authentic View - when you click on it, Authentic will modify the XML value on the fly and this will render or hide the table
The HTML view is static and depends on the value of the XML node by the time of HTML generation
|
|
guest |