W3cubDocs

/Web APIs

ProcessingInstruction: sheet property

The read-only sheet property of the ProcessingInstruction interface contains the stylesheet associated to the ProcessingInstruction.

The xml-stylesheet processing instruction is used to associate a stylesheet in an XML file.

Value

The associated Stylesheet object, or null if there are none.

Example

xml

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="rule.css"?>

The sheet property of the processing instruction will return the StyleSheet object describing rule.css.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
sheet 1 79 1 No 15 1 4.4 18 4 14 1 1.0

See also

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction/sheet