Let me first express my thanks for the responses to
the redlining, transclusion, and variant inquiries. 
I'm still digesting the input.

In the meantime, this issue goes a while back. Then, I
had difficulties with the following CSS:

graphic {
  display: block;
  content: paragraph(content(image(attr(src), -400,
-100, smooth), xpath("alt")));
}

No alt text would display.  I finally figured it out. 
Instead of having

@namespace "<a namespace>";

and the above CSS entry, I needed to use 

@namespace ans "<a namespace>";

and replace xpath("alt") with xpath("ans:alt").

It took me a while and I'm still not clear on why the
former would not work.

Taking it a step further the xpath expression
xpath("ans:f...@id=current()/@ref]") only seems to
work with that exact syntax (i.e.,
xpath("ans:f...@ans:id=current()/@ans:ref]") did not).
 What am I missing here?

Also, I would like to tag on a question:

Is it possible to style the result of an xpath
expression for display?  In my experiments, it only
seems to pick up the text and not apply any styling
from the CSS file.  Is this expected behavior?  I
would like to display the above content identical to
the <ans:faq> element in the document.  Can this be
achieved?

And finally, I would like to see if the following
proposed enhancement would make sense and be feasible.
 Currently, when the content: property is used with an
element, none of the element's children are processed
with the style sheet.  Is it possible to have a
pseudo-function (e.g., apply-css) that would indicate
to process them?  I encountered some cases, in which
it was hard or impossible to do what I had in mind.  A
better XML design could have helped in most of those
cases, but change is not always an option.

As always, thanks for all your time.

Regards,

Andreas 



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to