Sun Java System Portal Server 7.1 Technical Reference

Rules for XML Content

Web pages can contain XML content which in turn can contain URLs and Rewriter can rewrite URLS in XML content.

XML content that contains URLs is classified as follows:

Tag Text in XML

Rewriter translates XML content based on the tag name.

The default ruleset rewrites the following tags in XML:

The syntax for tag text is:


<TagText tag ="attribute" attributePatterns="name=src"/>

where attribute is the name of the tag and src is the name of the attribute.

Attributes in XML

The rules for attributes in XML are similar to the rules for attributes in HTML. See Attribute Rules for HTML Content for additional information. Rewriter translates attribute values based on the attribute and tag names.

The default ruleset rewrites the following attributes in XML:

The syntax for attributes in HTML is:


<Attributes>
<Attribute name="attribute" [valuePatterns="name=src"/>
</Attributes>

where attribute is the name of the tag and src is the name of the attribute.