[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML on Gecko

Subject: Re: XML on Gecko
From: Chris Lilley <chris@xxxxxx>
Date: Thu, 01 Apr 1999 10:20:56 +0200
auto href

Richard Lander wrote:
> 
>  I've got a couple concerns about transforming my XML documents to more
> appropriate XML documents for web display using CSS or XSL FOs, when
> implemented.
> 
> Are these solutions correct? 

mostly (as noted below)

> Are they implemented?

I was surprised to find that IE does not yet implement XLink - there has
been a draft available for like a year now, being a working draft didn't
stop them using XSL. Yes, that limits the usability somewhat ;-((

> 1. resolving links - use xml:link - <link xml:link="simple">content</link>

You need all four attributes. That would be

<link xml:link="simple" show="replace" actuate="auto"
href="url">content</link>

Of course, if you are using valid XML, you can put xml:link, show and
actuate as fixed attributes, (and href as required) so that becomes
simply

<link href="url">content</link>

I use a couple of boilerplate parameter entities in DTDs to do this:


<!ENTITY % hyperlink
  "xml:link CDATA #FIXED 'simple'
   show CDATA #FIXED 'replace'
   actuate CDATA #FIXED 'user'
   href CDATA #REQUIRED ">

<!ENTITY % replaced
  "xml:link CDATA #FIXED 'simple'
   show CDATA #FIXED 'embed'
   actuate CDATA #FIXED 'auto'
   href CDATA #REQUIRED ">

and then

<!ELEMENT link (whatever|content|model|you|want) >
<!ATTLIST link 
  %hyperlink;>

<!ELEMENT image (whatever|content|model|you|want) >
<!ATTLIST link 
  %replaced;>

> 2. resolving tables - using CSS2 'display' values for the various components
> of tables

Yes. Mozilla implements at least some of these, not sure about IE5

> 3. resolving graphics - xml:link - <GRAPHIC xml:link="simple" show="embed"
> file="somegraphic.gif"/> 

close

> - how does the agent know that the value of file is
> the graphic to show?  Do I have to use 'href'?

Yes. See above.

> 4. resolving lists - using CSS 'display' values for lists

Yes.

> Please excuse the CSS focus but since FOs are not possible at the moment, a
> CSS target seems like a valid use of XSL.

Well, the general discussion was using both XSL and CSS together, so it
seems on-topic to some extent. FOs implementations are starting to
become available, in FOP and in Indelv; for now, the CSS support is a
lot more mature and, once freed from its uneasy cohabitation with HTML,
it works a lot better.

--
Chris


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.