|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: |
<!-- I have an XML file that looks like this: -->
<page>
<paragraph>
Some <strong>text</strong> here.
</paragraph>
</page>
<!-- I then transform this XML into an XHTML document using an XSLT stylesheet. In that stylesheet, I have the following piece of code. For every "paragraph" element in the input, it writes a "p" element to the output and copies the contents of the "paragraph" element into the "p" element. -->
<xsl:for-each select="paragraph">
<p>
<xsl:for-each select="./node()">
<xsl:copy-of select="." />
</xsl:for-each>
<p>
</xsl:for-each>
<!-- The problem is that in the input XML, the tags defined by me and the XHTML tags aren't semantically distinguished. I would like to write something like this: -->
<page xmlns:ht="http://www.w3.org/1999/xhtml">
<paragraph>
Some <ht:strong>text</ht:strong> here.
</paragraph>
</page>
<!-- Here it is clear that my tags aren't in any namespace, while XHTML tags are in the XHTML namespace. Unfortunately, this does not work. The output document then ends up like this: -->
<p>Some <ht:strong xmlns:ht="http://www.w3.org/1999/xhtml">text</ht:strong> here.</p>
<!-- Which is unwanted (browsers don't understand it) and also unnecessary (everything in the document is in the XHTML namespace so there is no need to define a new prefix for it). -->
|
Advertisement
| Hall of Fame |