url rewriting

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

url rewriting

Mats Eklund-2
Hi,

I have a few elements in my page view which are not part of the xhtml namespace, but which have attributes containing url:s which I would like to have rewritten in the way other urls in xhtml are rewritten during epilogue. In particular the url points to a static file and I have enabled versioned resources, so the rewrite would need to account for the app-version. What's the best way of achieving this? Is it possible to send a configuration to the oxf:xhtml-rewrite processor to extend the attributes which it rewrites? As the attribute is actually part of the xforms namespace, I was thinking maybe the xforms processor can be used, but I'd have to disable all other transformations that this processor normally does...

Thanks,
Mats



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: url rewriting

Mats Eklund-2
Ok, I think this is what I will try to do: I will extract all relevant elements/attributes/urls from my source document and have them inserted as xhtml:link elements in a dummy xhtml document on which I will apply the xhtml-rewrite processor. Then I will put the rewritten urls back into the source document by means of some kind of placeholders.

--- On Wed, 3/10/10, Mats Eklund <[hidden email]> wrote:

From: Mats Eklund <[hidden email]>
Subject: [ops-users] url rewriting
To: [hidden email]
Date: Wednesday, March 10, 2010, 11:40 PM

Hi,

I have a few elements in my page view which are not part of the xhtml namespace, but which have attributes containing url:s which I would like to have rewritten in the way other urls in xhtml are rewritten during epilogue. In particular the url points to a static file and I have enabled versioned resources, so the rewrite would need to account for the app-version. What's the best way of achieving this? Is it possible to send a configuration to the oxf:xhtml-rewrite processor to extend the attributes which it rewrites? As the attribute is actually part of the xforms namespace, I was thinking maybe the xforms processor can be used, but I'd have to disable all other transformations that this processor normally does...

Thanks,
Mats


-----Inline Attachment Follows-----


--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: url rewriting

Erik Bruchez
Administrator
Mats,

Wrt your original question, currently oxf:xhtml-rewrite is quite hardcoded for HTML/XHTML elements and attributes. It would be great to improve it to be more configurable though, assuming its performance is not made worse. The code is in AbstractRewrite.java.

-Erik

On Thu, Mar 11, 2010 at 12:58 AM, Mats Eklund <[hidden email]> wrote:
Ok, I think this is what I will try to do: I will extract all relevant elements/attributes/urls from my source document and have them inserted as xhtml:link elements in a dummy xhtml document on which I will apply the xhtml-rewrite processor. Then I will put the rewritten urls back into the source document by means of some kind of placeholders.

--- On Wed, 3/10/10, Mats Eklund <[hidden email]> wrote:

From: Mats Eklund <[hidden email]>
Subject: [ops-users] url rewriting
To: [hidden email]
Date: Wednesday, March 10, 2010, 11:40 PM


Hi,

I have a few elements in my page view which are not part of the xhtml namespace, but which have attributes containing url:s which I would like to have rewritten in the way other urls in xhtml are rewritten during epilogue. In particular the url points to a static file and I have enabled versioned resources, so the rewrite would need to account for the app-version. What's the best way of achieving this? Is it possible to send a configuration to the oxf:xhtml-rewrite processor to extend the attributes which it rewrites? As the attribute is actually part of the xforms namespace, I was thinking maybe the xforms processor can be used, but I'd have to disable all other transformations that this processor normally does...

Thanks,
Mats


-----Inline Attachment Follows-----


--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws