Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5844029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:14:14+00:00 2026-05-22T12:14:14+00:00

I have several Xsl-Files, which extract Informations from an Xml-File for a Android App.

  • 0

I have several Xsl-Files, which extract Informations from an Xml-File for a Android App.
The Xml-File is also used for a mobile website, so it has html-tags included.

The output of the text is placed in a webview, now i want to style the html Elements with Css-Stylesheets, which are located in my local Css-File.

My question is, where can i reference to my Css-File?

I tried to include it in the xsl-Files, but that wasn’t sucessful:

    <xsl:template match="/">
    <html>
         <head>
         <link rel="stylesheet" type="text/css" href="file:///android_asset/raw/design.css" />       
         </head>
    .....

The following method works fine, but at any changes i must update all the xsl-Files.

    <style type="text/css">
           Css-Stylesheets here
    </style>

Is there an better, easier or smarter way to reference / link to the Css-File?

Thanks for your help,
Aero13 (with his bad school english ; ))

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T12:14:15+00:00Added an answer on May 22, 2026 at 12:14 pm

    I have solved the problem. A very simple Problem : /

    The problem was the wrong folder i searched in.

    href="file:///android_asset/raw/design.css"
    and 
    href="file:///android_res/raw/design.css"
    

    The file was located in res, not in assets.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have several xml files, the names of which are stored in another xml
I am trying to process an xml file which has several different state groups
I have an interesting problem with XSL. We have an XML Input file that
I have several <xsl:for-each/> which run the one after the other. I would like,
I have an XML schema that I need to extract values from but I
We have several .NET applications that monitor a directory for new files, using FileSystemWatcher.
I have several log files of events (one event per line). The logs can
I have a series of medium-sized XML documents, which are mainly text with a
So, I have a variable containing a nodeset with several Size nodes <xsl:variable name=sizes
I have several templates that match various nodes in an xml document. If I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.