ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
Re: [xml-dev] Re: Can XLink be fixed?
by Robin Berjon other posts by this author
Aug 16 2002 9:03AM messages near this date
Re: [xml-dev] Re: Can XLink be fixed? | Re: [xml-dev] Re: Can XLink be fixed?
J. David Eisenberg wrote:
>  On Thu, 15 Aug 2002, Norman Walsh wrote:
> >/ "J. David Eisenberg" <catcode@[...].com> was heard to say:
> >| (essentially, how do I map <p class="important warning">...</p> to an 
> >| equivalent XSL-FO without parsing a stylesheet, or equally ugly, the
> >| class attribute.) 
> >
> ><xsl:template match="p[@class='important warning']">
> >
> >But you must have wanted something more subtle than that...
>  
>  Yes. I want something "generic."  I can do something to the effect of:
>  
>     <xsl:template name="handle-styles"> 
>        <xsl:if test="contains(@class, 'important')">
>           <!-- add appropriate attrs to fo:block -->
>        </xsl:if>
>        <xsl:if test="contains(@class, 'warning')">
>           <!-- add appropriate attrs to fo:block -->
>        </xsl:if>
>     </xsl:template>
>  
>  which will do what I intend

Even that will fail to address the general case in fact. If a class 
called "importantly" is present you'll match wrongly. Besides, there may 
be nasty case-sensitivity problems floating around depending on whether 
there's HTML involved at some point or not.

-- 
Robin Berjon <robin.berjon@[...].fr> 
Research Engineer, Expway


-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org> 

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl> 
Thread:

Rick Jelliffe
Henry S. Thompson
Norman Walsh
Norman Walsh
Paul Prescod
Simon St.Laurent
Norman Walsh
Simon St.Laurent
Robin Berjon
=?iso-8859-1?Q?Bill_de_h=D3ra?=
Simon St.Laurent
Paul Prescod
Simon St.Laurent
Robin Berjon
Simon St.Laurent
Simon St.Laurent
Norman Walsh
Simon St.Laurent
Norman Walsh
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
J. David Eisenberg
Norman Walsh
J. David Eisenberg
Robin Berjon
Norman Walsh
Simon St.Laurent
Norman Walsh
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
Shane McCarron
Simon St.Laurent
Joe English
Norman Walsh
Simon St.Laurent
Keith W. Boone
Arjun Ray
Arjun Ray
Rick Jelliffe
Simon St.Laurent
Simon St.Laurent
Tim Bray
Simon St.Laurent
Tim Bray
Simon St.Laurent
Elliotte Rusty Harold
Simon St.Laurent
Lars Marius Garshol
Bob DuCharme
Elliotte Rusty Harold
Didier PH Martin
Elliotte Rusty Harold
Simon St.Laurent
Elliotte Rusty Harold
Norman Walsh
Tim Bray
Simon St.Laurent
Tim Bray
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
Ann Navarro
Simon St.Laurent
Elliotte Rusty Harold
Simon St.Laurent
Simon St.Laurent
Elliotte Rusty Harold
Simon St.Laurent
John Cowan
Rick Jelliffe
Simon St.Laurent
John Cowan
Simon St.Laurent
John Cowan
Simon St.Laurent
Mike Champion
Didier PH Martin
John Cowan
Mike Champion
Simon St.Laurent
Norman Walsh
Tim Bray
Simon St.Laurent
Rick Jelliffe
Norman Walsh
Masayasu Ishikawa
John Cowan
Jeff Rafter

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved