Smart ass as I am (just have been listening to Bonzo Dog Doo-bah Band's
'Look at me I'm wonderful') I thought that using the " instead of
" would take care of it:
<a href = " _javascript_:ShowContent('<wo:WOString
value
="[mySess.selectedPerformance.primaryKey]"/>')
"
ShowContent('<wo:WOString
value="[mySess.selectedPerformance.primaryKey]"/>'); return true; "
HideContent('<wo:WOString
value
="[mySess.selectedPerformance.primaryKey]"/>'); return true; " >
I would assume that the webobjects parser would parse the WOString bit,
then pass the rest to the webserver which in return would pass it to the browser
where the " quoting would be returned to it glorious " quoting and be
interpreted by the browser as being a _javascript_.
Unfortunately that resulted in:
SAXParseException:
Open quote is expected for attribute "href" associated with an element
type "a".
at
org.apache.xerces.parsers.AbstractSAXParser.parse(null:Unknown)
at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(null:Unknown)
at
com.webobjects.appserver.parser.woml.WOMLTemplateParser.process(WOMLTemplateParser.java:339)
at
com.webobjects.appserver.parser.woml.WOMLTemplateParser.parse(WOMLTemplateParser.java:653)
at
com.webobjects.appserver.parser.WOHTMLTemplateParser.parse(WOHTMLTemplateParser.java:40)
at
com.webobjects.appserver.parser.WOComponentTemplateParser.templateWithHTMLAndDeclaration(WOComponentTemplateParser.java:438)
... skipped 1
stack elements
at
com.webobjects.appserver.WOComponent.template(WOComponent.java:499)
... skipped 17 stack
elements
Anybody a correct way of quoting?
(Because the liberal use of quotes in this document, you should not feed
this document to your SAXParser)