Is it possible to prefix an attribute content value with a literal?
Example (taken from Prince docs)
css
picture { content: attr("src", url) }
If I wanted to prefix the all image srcs with a path like "./myPDFimages/" for PDF generation, I might do something like:
css
picture { content: "./myPDFimages/" + attr("src", url) }
Unfortunately, this doesn't work. Any suggestions? -John
Example (taken from Prince docs)
css
picture { content: attr("src", url) }
If I wanted to prefix the all image srcs with a path like "./myPDFimages/" for PDF generation, I might do something like:
css
picture { content: "./myPDFimages/" + attr("src", url) }
Unfortunately, this doesn't work. Any suggestions? -John
John Clarke
Cornerstone Systems Northwest Inc.