Inline stylesheet happens after import path fixup, so outputPath of rewriteURL should be the overall outputPath

Use getTextContent when reading stylesheets