On Thursday, Mar 13, 2003, at 16:16 Europe/London, Jason Johnston wrote:

Matt Sergeant wrote:
>>I've been trying to find a way to choose a stylesheet based on some
>>arbitrary structures within my source XML.
>
> What do the structures look like?

The XML source is RDF-XML. I've created a custom Provider to serialize the XML from an RDF database. What I need to match against is the rdf:type of the resource at the requested URI, which can be in one of numerous formats (attribute, element in many possible positions) so matching it is a complex process that I need Perl for.

I've also considered finding the rdf:type within the Provider as I'm accessing the RDF database, and caching it as $self->{rdf_type}, which I could then retrieve later in the DynamicProcessor (since it gets a reference to the $provider). This is probably the simpler way to go now that I think about it.

Even easier then - the provider is responsible for getting the styles.


Matt.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to