Thorsten Scherler wrote: > Gav.... escribi??: > > Thorsten Scherler wrote: > > [ snip ] > > > > | b) Till now we assumed that all hooks go > > | into /html/body but this need to be more flexible. I propose to add a > > | new attribute @hooksXpath to the forrest:view. I propose this attribute > > | @hooksXpath as required. > > | > > | <forrest:view type="html" hooksXpath="/html/body"> > > | <forrest:hook name="htmlBodyHook"/> > > | </forrest:view> > > | > > | that will be transformed into > > | <html> > > | <body> > > | <forrest:hook name="htmlBodyHook"/> > > | </body> > > | </html> > > | > > | c) We need another attribute in hooks @element which would not create > > | a div but the value of @element: > > | <forrest:hook element="html"> > > | <forrest:hook element="body"> > > | <forrest:hook name="htmlBodyHook"/> > > | </forrest:hook> > > | </forrest:hook> > > | > > | that will be transformed into > > | <html> > > | <body> > > | <forrest:hook name="htmlBodyHook"/> > > | </body> > > | </html> > > > > b) and c) above both transform to the same output ? > > Yes, but note the different markup to archive it.
I reckon that Thorsten meant "to achieve it". > > I think I need a walkthrough. Like others perhaps I have been both very busy > > (had to leave Forrest Friday before I even got started, sorry) and also just > > 'watching' progress until I begin to understand it. > > > > I need to learn again by doing, I have been gleaning www.xml.com and going > > back to > > basics with xsl and pipelines as I have been fumbling my way through so far. > > > > Could you possibly, if you ever get the time, walk through for me how to > > add > > an xhtml2 > > coded page to a v2 site. (or an xml) and what happens along the way. > > Please start with > http://forrest.apache.org/docs_0_80/howto/howto-structurer-install.html > http://forrest.apache.org/docs_0_80/howto/howto-structurer-dsl.html > http://forrest.apache.org/docs_0_80/howto/howto-structurer-contracts.html > > NOTE: this instruction do *NOT* contain the recent changes (as in this > summary) till the transformer is in svn and official part of forrest. > > Sure I will help you walking through to add whatever to v2 if you read > above howtos and can ask some specific questions regarding the process. > > Thanks Gav for your feedback, that helps a lot to discover points that > are not clear. There is also the document (under development) in site-author/content/xdocs/TR/2005/ that explains terminology and overall goals. -David