[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Architectural Forms: The Next Generation
Is it possible to reorder the mapped forms? What if I wanted the date element to appear after the byline element? I'm assuming that the order of forms in the map has no effect since they don't match the result document. I like the idea but it seems that all your map can do is strip and rename. Wouldn't mapping from one form to another with more complex vocabularies require more functionality than that? I'm just a youngin' so AFs are entirely new to me. But it seems that you're just trying to write a transform but without using XSLT or other procedural code. Don't get me wrong, I think that'd be great but it doesn't seem to have the flexibility and power that you get with full XSLT. Jason ----- Original Message ----- From: "John Cowan" <cowan@m...> To: "Jason Diamond" <jason@i...> Cc: <xml-dev@l...> Sent: Sunday, January 27, 2002 3:57 PM Subject: Re: Architectural Forms: The Next Generation > Jason Diamond scripsit: > > > It's just a sketch. What do y'all think? > > > > How about an example or two? > > Gladly. Consider the following bit of XHTML (namespace declarations > omitted): > > <html><head><title>Reuters Health Information (2002-01-25): Renal allograft an > d patient survival not compromised by pregnancy</title></head> > <body bgcolor="white"><p class="category"><small>Clinical</small></p> > <p class="headline"><strong>Renal allograft and patient survival not compromis > ed by pregnancy</strong></p> > <p class="datestamp"><small><em>Last Updated: 2002-01-25 9:48:53 EST (Reuters > Health)</em></small></p> > <p class="byline">By Paula Moyer</p> > <p class="lead">NEW YORK (Reuters Health) - Neither the allograft nor patient > survival is compromised when a renal transplant patient becomes pregnant, acco > rding to Dr. Alan Buchbinder, speaking last week in New Orleans at the 22nd an > nual meeting of the Society for Maternal-Fetal Medicine.</p> > <p>"We had long-term follow-up of matched cohorts in three groups: women who > had become pregnant, women who had not been pregnant, and men," Dr. Buchbinder > told Reuters Health. "Although some physicians might be surprised by these f > indings, they showed that pregnancy does not have a deleterious effect on eith > er the allograft or patient survival."</p></body></html> > > This can be transformed using the map > > <map name="article" form-att="class"> > <form name="headline" to-name="hed"/> > <form name="byline" to-name="byline"/> > <form name="datestamp" to-name="date"/> > <form name="lead" to-name "lede"/> > <form name="#default" to-name "para"/> > </map> > > to: > > <article> > <hed>Renal allograft and patient survival not compromis > ed by pregnancy</hed> > <date>Last Updated: 2002-01-25 9:48:53 EST (Reuters > Health)</date> > <byline>By Paula Moyer</byline> > <lede>NEW YORK (Reuters Health) - Neither the allograft nor patient > survival is compromised when a renal transplant patient becomes pregnant, acco > rding to Dr. Alan Buchbinder, speaking last week in New Orleans at the 22nd an > nual meeting of the Society for Maternal-Fetal Medicine.</lede> > <para>"We had long-term follow-up of matched cohorts in three groups: women who > had become pregnant, women who had not been pregnant, and men," Dr. Buchbinder > told Reuters Health. "Although some physicians might be surprised by these f > indings, they showed that pregnancy does not have a deleterious effect on eith > er the allograft or patient survival."</para></article> > > -- > John Cowan http://www.ccil.org/~cowan cowan@c... > To say that Bilbo's breath was taken away is no description at all. There > are no words left to express his staggerment, since Men changed the language > that they learned of elves in the days when all the world was wonderful. > --_The Hobbit_ >
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|